inernal compiler error

gavinband@tiscali.co.uk gavinband@tiscali.co.uk
Mon Mar 1 17:08:00 GMT 2004


Sorry if this isn't the right place/time/it's an old vesion, etc.
Using gcc 3.3.2 fedora core 1 rpms,  this code...

namespace outer{
  namespace A  {
    template<typename B>
    class A
    {
    };
  }
}

int main()
{
  typedef outer::A<int> a_type;  // Should be outer::A::A<int>
  return 0;
}

...gives the following output:
g++ test.cxx
test.cxx: In function `int main()':
test.cxx:14: internal compiler error: in lookup_template_function, at cp/pt.c:
   4006
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccSS7JTM.out file, please attach this
to your bugreport


... the preprocessed source is:

// /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/cc1plus -quiet -D__GNUC__=3
-D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=2 -D_GNU_SOURCE test.cxx -D__GNUG__=3
-quiet -dumpbase test.cxx -auxbase test -o -
# 1 "test.cxx"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "test.cxx"
namespace outer
{
  namespace A
  {
    template<typename B>
    class A
    {
    };
  }
}

int main()
{
  typedef outer::A<int> a_type;
  return 0;
}

gav.

__________________________________________________
Broadband from an unbeatable £15.99!

http://www.tiscali.co.uk/products/broadband/home.html?code=SM-NL-11AM





More information about the Gcc mailing list