This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/7266: pedantic segfaults on missing typename
- From: glisse at convex dot poly dot edu
- To: gcc-gnats at gcc dot gnu dot org
- Date: 10 Jul 2002 19:18:23 -0000
- Subject: c++/7266: pedantic segfaults on missing typename
- Reply-to: glisse at convex dot poly dot edu
>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: