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++/5698: internal error when parsing exception specification w/template type



>Number:         5698
>Category:       c++
>Synopsis:       internal error when parsing exception specification w/template type
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 14 22:16:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Art Bezrodnoff
>Release:        gcc version 3.0.3
>Organization:
>Environment:
Sun U-SPARCII, Solaris7
>Description:
compiler-generated message:

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:
/*line 10*/ int f() throw (typename _T::SIn) { return 0; }
};
int main(void)
{
	CTempl<long> 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]