[Bug debug/11816] Incorrect debugging information for anonymous structures

alfonso_acosta_mail at yahoo dot es gcc-bugzilla@gcc.gnu.org
Tue Aug 5 23:49:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11816



------- Additional Comments From alfonso_acosta_mail at yahoo dot es  2003-08-05 23:49 -------
Subject: Re:  Incorrect debugging information for anonymous
 structures

pinskia at physics dot uc dot edu wrote:

> ------- Additional Comments From pinskia at physics dot uc dot edu  2003-08-05 23:27 -------
> We need the preprocessed source for this.
> Read http://gcc.gnu.org/bugs.html
> 
> 
> 

Sorry, I just used gccbug script, I attached the preprocessed file
# 1 "calc.c"
# 1 "<interno>"
# 1 "<l\355nea de orden>"
# 1 "calc.c"




typedef enum {
        CONSTANT,

        SUM,
        SUB,
        PROD,
        DIV,
        POW,

        ASIGNMENT,

        VAR,

        FORMAT,

        FUNC
} exprkind;

typedef enum {
        DEC,
        OCT,
        REAL
} format_t;

typedef struct expr *exptr;

typedef struct expr {
        exprkind kind;

        union{

                struct {
                        exptr binleft;
                        exptr binright;
                };

                struct {
                        exptr asigleft;
                        exptr asigright;
                };

                format_t format;

                char *varname;

                double constant;

                struct {
                        char *functname;
                        exptr *args;
                };

        };
} expr_t;

int main (){
        return 0;
}



More information about the Gcc-bugs mailing list