This is the mail archive of the gcc-bugs@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++/8928: gcc fails to reject an ill-formed specialization of a typedef


>Number:         8928
>Category:       c++
>Synopsis:       gcc fails to reject an ill-formed specialization of a typedef
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 13 09:06:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     sebor@roguewave.com
>Release:        gcc 3.2
>Organization:
>Environment:

>Description:
The ill-formed program below compiles w/o an error with gcc 3.2.

$ cat t.cpp; gcc --version; gcc t.cpp -c; echo $?
namespace N {

template <class T, class U> struct S { };
typedef S<int, int> Sii;

}

N::Sii<int, int> s;   // Sii is not a template
gcc (GCC) 3.2
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

0
>How-To-Repeat:

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