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]

c++/2610: template-template nested member of template class ICEs



>Number:         2610
>Category:       c++
>Synopsis:       template-template nested member of template class ICEs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 22 00:16:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     jemorris@alum.mit.edu
>Release:        2.95.3 20010315
>Organization:
>Environment:
redhat 6.2
>Description:
cabal> /usr/local/bin/g++ -v -save-temps -c sample.cc 
Reading specs from /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.3/specs
gcc version 2.95.3 20010315 (release)
 /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.3/cpp0 -lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -D__ELF__ -Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di586 -Dpentium -D__i586 -D__i586__ -D__pentium -D__pentium__ sample.cc sample.ii
GNU CPP version 2.95.3 20010315 (release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.3/../../../../include/g++-3
 /usr/local/include
 /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.3/../../../../i586-pc-linux-gnu/include
 /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.3/include
 /usr/include
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.
 /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.3/cc1plus sample.ii -quiet -dumpbase sample.cc -version -o sample.s
GNU C++ version 2.95.3 20010315 (release) (i586-pc-linux-gnu) compiled by GNU C version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release).
sample.cc: In instantiation of `Foo<int>':
sample.cc:4:   instantiated from here
sample.cc:4: Internal compiler error.
sample.cc:4: Please submit a full bug report.
>How-To-Repeat:
template <typename T> class Foo {
  template <template <class> class C> class Bar {};
};
Foo<int> foo;
// .ii is identical save for initial "# 1" line
>Fix:
Under my default g++, from the egcs 1.1.2-30 RPMs,
it Just Works.  (Or at least it Just Compiles.)
 
>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]