From mboxrd@z Thu Jan 1 00:00:00 1970 From: lachaume@gagax6.obs.ujf-grenoble.fr To: gcc-gnats@gcc.gnu.org Subject: c++/2759: messes up struct/class keywords Date: Mon, 07 May 2001 06:06:00 -0000 Message-id: <20010507130137.19293.qmail@sourceware.cygnus.com> X-SW-Source: 2001-05/msg00183.html List-Id: >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 #include template struct MyClass { class bad_range; }; template class MyClass::bad_range: public std::range_error { }; int main() { } >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: