This is the mail archive of the gcc-prs@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]

c++/7266: pedantic segfaults on missing typename


>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:


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