Command line:
$ g++ -O2 testcase.h
$ g++ -O2 testcase.C -fno-strict-aliasing

Compiler output:
$ g++ -O2 testcase.h
$ g++ -O2 testcase.C -fno-strict-aliasing
testcase.h: In constructor 'A<<anonymous> >::A() [with int <anonymous> = 0]':
testcase.h:17:12:   instantiated from here
testcase.h:13:5: internal compiler error: in typeid_ok_p, at cp/rtti.c:311
Please submit a full bug report,
with preprocessed source if appropriate.
See <> for instructions.

Tested revisions:
r163636 - crash
r153685 - crash
4.4 r149995 - crash

           Summary: ICE: in typeid_ok_p, at cp/rtti.c:311 when using
                    precompiled headers
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: pch
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zsojka at seznam dot cz
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu

Reply via email to