This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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;
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]