public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/2759: messes up struct/class keywords
@ 2001-05-07  6:06 lachaume
  0 siblings, 0 replies; only message in thread
From: lachaume @ 2001-05-07  6:06 UTC (permalink / raw)
  To: gcc-gnats

>Number:         2759
>Category:       c++
>Synopsis:       messes up struct/class keywords
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          accepts-illegal
>Submitter-Id:   net
>Arrival-Date:   Mon May 07 06:06:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Regis Lachaume
>Release:        unknown-1.0
>Organization:
>Environment:
latest snapshot on linux
>Description:
The folowing incorrect code compiles without any warning
(compiler options: -W -Wall -ansi -pedantic -O2)
Tried on http://www.codesourcery.com/gcc-compile.shtml

#include <stdexcept>
#include <iostream>

template<class C> struct MyClass { class bad_range; };

template<class C> class MyClass<C>::bad_range: public std::range_error { };

int main() { }
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-05-07  6:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-07  6:06 c++/2759: messes up struct/class keywords lachaume

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).