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/51034] New: invalid typeof usage


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

             Bug #: 51034
           Summary: invalid typeof usage
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: etienne.bergeron@octasic.com


This code should not compile:

struct S;
int main()
{
    struct S 
    {         
        typeof( ((struct S){}) ) x;
    } s;
}


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