This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/6570: gcc-3.1 crash with template and namespace
- From: Artur Siekielski <gruesome at poczta dot onet dot pl>
- To: gcc-gnats at gcc dot gnu dot org
- Date: Sun, 05 May 2002 22:56:42 +0200
- Subject: c++/6570: gcc-3.1 crash with template and namespace
- Reply-to: gruesome at poczta dot onet dot pl
>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
>Closed-Date:
>Last-Modified:
>Originator:
>Release:
>Organization:
>Environment:
>Description:
Release: 3.1 20020429 (prerelease)
Environment:
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++
Description:
gcc gives an ICE if class ``S'' is defined in namespace. Code is incorrect of course.
How-To-Repeat:
Code:
namespace My {
template <typename T> class S {};
}
class Bar {
My::S<bool> s;
public:
My::S& signalPressed()
{
return this->s;
}
};
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: