This is the mail archive of the 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++/6570: gcc-3.1 crash with template and namespace

>Number:         6570
>Category:       c++
>Synopsis:       gcc-3.1 crash with template and namespace
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Sun May 05 22:56:01 PDT 2002
 Release:	3.1 20020429 (prerelease)
 System: Linux muyc 2.4.19-pre3 #25 wto mar 12 07:57:57 CET 2002 i686 unknown
 Architecture: i686
 	<machine, os, target, libraries (multiple lines)>
 host: i686-pc-linux-gnu
 build: i686-pc-linux-gnu
 target: i686-pc-linux-gnu
 configured with: ../gcc-20020429/configure --prefix=/usr/local/gcc-3.1 --disable-nls --enable-threads --enable-shared --disable-debug --enable-languages=c c++
 	gcc gives an ICE if class ``S'' is defined in namespace. Code is incorrect of course.
 namespace My {
       template <typename T> class S {};
 class Bar {
       My::S<bool> s;
       My::S& signalPressed()
             return this->s;

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