c++/7266: pedantic segfaults on missing typename
glisse@convex.poly.edu
glisse@convex.poly.edu
Wed Jul 10 12:39:00 GMT 2002
>Number: 7266
>Category: c++
>Synopsis: pedantic segfaults on missing typename
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Wed Jul 10 12:26:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: glisse@convex.poly.edu
>Release: 3.1
>Organization:
>Environment:
solaris 2.7
>Description:
If one omits the typename in the following code:
template <class A> struct B {typedef A::C::D E;};
compiled with g++ -pedantic
test.cpp:1: warning: ISO C++ forbids declaration of `D' with no type
test.cpp:1: internal error: Segmentation Fault
>How-To-Repeat:
template <class A> struct B {typedef A::C::D E;};
compiled with g++ -pedantic
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list