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 c/32246] New: endless loop due to parsing error


The following code snippet lets gcc (3.4.6) spin in an endless loop and print
out the error message

error: `data_t::<anonymous struct>::<anonymous struct>' has no non-static data
member named `a'

again and again:

typedef struct
{
  struct {
      struct {
          unsigned a1;
          unsigned a2;
        } a;
      unsigned b;
    };
  unsigned foo;
} data_t;

data_t _data = { a:0 }};


-- 
           Summary: endless loop due to parsing error
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: frenzel at os dot inf dot tu-dresden dot de


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


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