Opened 9 years ago

Closed 9 years ago

#706 closed bug (fixed)

struct definition: undefined types not detected

Reported by: kroeker@… Owned by: somebody
Priority: minor Milestone: 4-1-0 and higher
Component: singular-kernel Version: 4-0-2
Keywords: struct undefined type Cc:

Description

newstruct does not detect undefined types.

// testStruct.lib content
version=" ";
category = "tests";
info="";
static proc mod_init()
{
      newstruct("TBoom",        "TUndefined boom , int something   ");
      newstruct("TWrong",       "int value, TUndefined undefined   ");
}

Example:

LIB("testStruct.lib");

TWrong f;
type(f.undefined); // int, wrong!

TBoom g; // sometimes segfault , sometimes 'unknown type'

Change History (1)

comment:1 Changed 9 years ago by hannes

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.