This is the mail archive of the gcc-bugs@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]

EGCS bug


To Whom it may concern, 
	I've found what I believe to be a bug in EGCS which is not listed among the 
"Known Bugs".

I'm running EGCS on a Sun Ultra Sparc 1 running Solaris 2.5

EGCS version:
bufo>g++ -v
Reading specs from /diamond/homes/sylv/usr/local/lib/gcc-lib/sparc-sun-solaris2
.5/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)

The .ii file created from the code which causes the error is:


# 1 "main.cc"
namespace NS {
	const int DefaultValue = -1;
};

template<class T>
class A
{
	public:
		A( int ai_value = NS::DefaultValue ) {}  
};

main()
{
}



compilation is carried out with:
bufo>g++ main.cc -o main
the results of this command are:
main.cc:9: sorry, not implemented: `namespace_decl' not supported by dump_type

Since the code on line nine appears to be completely valid, and other 
compilers handle this just fine, and similar code in non-templated classes is 
just fine, I assume the error message is incorrect.

Thank you for your time,
Scott Sylvester.

************************************************************************
Scott M. Sylvester               |E-mail: sylv@tiem.utk.edu
UTK Dept. of EEB                 |Web: http::/www.tiem.utk.edu/~sylv
569 Dabney Hall                  |Phone: (423) 974-0223 or(423) 974-3065
Knoxville TN 37996-1610          |Fax: (423) 974-3067
------------------------------------------------------------------------
Working in: 
	104 Hoskins Library... you will never find a more 
	wretched hive of scum and villiany.
************************************************************************



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