[Bug c++/30837] New: typeof fails

igodard at pacbell dot net gcc-bugzilla@gcc.gnu.org
Sat Feb 17 19:56:00 GMT 2007


struct foo{ typedef int bar; };
int main() {
    foo f;
    typeof(f)::bar i = 0;
    return 0;
    }


gets you:

~/ootbc/sim/test$ g++ foo.cc
foo.cc: In function 'int main()':
foo.cc:4: error: expected initializer before 'i'


-- 
           Summary: typeof fails
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: igodard at pacbell dot net


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



More information about the Gcc-bugs mailing list