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]

namespace triggers an ICE in 19990621


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;
}


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