This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/5699: internal error when parsing exception specification w/template type
- From: be_artv at yahoo dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 15 Feb 2002 06:23:37 -0000
- Subject: c++/5699: internal error when parsing exception specification w/template type
- Reply-to: be_artv at yahoo dot com
>Number: 5699
>Category: c++
>Synopsis: internal error when parsing exception specification w/template type
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: accepts-illegal
>Submitter-Id: net
>Arrival-Date: Thu Feb 14 22:26:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Art Bezrodnoff
>Release: gcc version 3.0.3
>Organization:
>Environment:
Sun U-SPARCII, Solaris7
>Description:
copiler-generated mesage:
test.cc:10: Internal error #108.
test.cc:10: Internal compiler error in incomplete_type_error, at cp/typeck2.c:
249
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
source code:
->begin
// test.cc - reproduces gcc 3.0.3 problem
class CParam {
public:
struct SIn { int a; };
};
template <typename _T>
class CTempl {
public:
int f() throw(typename _T::SIn) { return 0; }
};
int main(void)
{
CTempl<CParam> l;
int t = l.f();
return 0;
}
->end
command line:
gcc test.cc
>Fix:
none
>Release-Note:
>Audit-Trail:
>Unformatted: