This is the mail archive of the gcc-prs@gcc.gnu.org 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++/5699: internal error when parsing exception specification w/template type



>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:


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