#304 Warning generated at the wrong line num

closed-fixed
nobody
5
2013-05-25
2002-03-01
Michael Hope
No

See the regression tests. This code:

typedef struct _String
{
const UINT8 sz[1];
} String;

struct _Class
{
String *szName;
};

const Class Bar = {
"java.lang.Object",
};

void foo(void)
{
}

generates the correct warning Initializer different levels of indirections

but at the wrong line number. The reported line is 26, which is in the middle of foo().

Discussion

  • Johan Knol
    Johan Knol
    2002-03-01

    • status: open --> closed
     
  • Johan Knol
    Johan Knol
    2002-03-01

    • milestone: --> fixed
    • status: closed --> closed-fixed
     
  • Johan Knol
    Johan Knol
    2002-03-01

    Logged In: YES
    user_id=63512

    fixed in SDCCglue.c