This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
namespace triggers an ICE in 19990621
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: namespace triggers an ICE in 19990621
- From: Ovidiu Toader <ovi at physics dot utoronto dot ca>
- Date: Sat, 03 Jul 1999 18:58:02 -0400
- Organization: University of Toronto
If class A is not defined inside namespace NL then no ICE is reported.
--
Ovidiu
albatros:~/work/C++/bug2> uname -a
Linux albatros.physics.utoronto.ca 2.2.5-15.ovi #5 SMP Mon Jun 14
01:08:04 EDT 1999 i686 unknown
albatros:~/work/C++/bug2> g++ -v
Reading specs from
/usr/local/Packages/lang/egcs/install/lib/gcc-lib/i686-pc-linux-gnu/gcc-2.95/specs
gcc version gcc-2.95 19990621 (prerelease)
albatros:~/work/C++/bug2> g++ -o exe main.cc
main.cc:5: Internal compiler error.
main.cc:5: Please submit a full bug report to
`egcs-bugs@egcs.cygnus.com'.
main.cc:5: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for
details.
albatros:~/work/C++/bug2> cat main.cc
namespace NL {
template <typename T>
class A {
template <typename T_> friend class A; // Line 5
};
}
int
main(){
NL::A<int> a;
}