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++/2198: nested templates trigger ICE in gcc version 2.95.3 20010219 (prerelease)



>Number:         2198
>Category:       c++
>Synopsis:       nested templates trigger ICE in gcc version 2.95.3 20010219 (prerelease)
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 06 11:36:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Frank Schimmel
>Release:        gcc version 2.95.3 20010219 (prerelease)
>Organization:
>Environment:
sparc-sun-solaris2.8
>Description:
Compiling the incuded program with
    g++ -v -Wall -c bug.cc
results in the following:

Reading specs from /home/fschimme/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/specs
gcc version 2.95.3 20010219 (prerelease)
 /home/fschimme/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/cpp0 -lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -Dsparc -Dsun -Dunix -D__svr4__ -D__SVR4 -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D__SVR4 -D__sparc -D__sun -D__unix -Asystem(unix) -Asystem(svr4) -D__EXCEPTIONS -Wall -D__GCC_NEW_VARARGS__ -Acpu(sparc) -Amachine(sparc) bug.cc /var/tmp/ccFzhmGr.ii
GNU CPP version 2.95.3 20010219 (prerelease) (sparc)
#include "..." search starts here:
#include <...> search starts here:
 /home/fschimme/include
 /home/fschimme/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/../../../../include/g++-3
 /usr/local/include
 /home/fschimme/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/../../../../sparc-sun-solaris2.8/include
 /home/fschimme/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.8/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.
 /home/fschimme/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/cc1plus /var/tmp/ccFzhmGr.ii -quiet -dumpbase bug.cc -Wall -version -o /var/tmp/ccuVPHwN.s
GNU C++ version 2.95.3 20010219 (prerelease) (sparc-sun-solaris2.8) compiled by GNU C version 2.95.3 20010219 (prerelease).
bug.cc: In instantiation of `ClientClass<1>':
bug.cc:18:   instantiated from here
bug.cc:14: Internal compiler error.
bug.cc:14: Please submit a full bug report.
bug.cc:14: See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

Interestingly, making things more complicated seems to
circumvent the problem: using the typdefe on line 12 
nstead of the one on line 11, it compiles.

FYI: with gcc version 2.97 20010205 (experimental) the
program compiles without complaint.
>How-To-Repeat:
g++ -v -Wall -c bug.cc
>Fix:
Not really...
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="bug.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bug.cc"

CnRlbXBsYXRlPGludCBwYXJhbT4gY2xhc3MgU29tZUNsYXNzIHsKcHVibGljOgogIHRlbXBsYXRl
PHR5cGVuYW1lIFQ+IGNsYXNzIElubmVyQ2xhc3MgeyB9Owp9OwoKdGVtcGxhdGU8dHlwZW5hbWUg
Rm9yd2FyZGVlPiBjbGFzcyBGb3J3YXJkZXIgOiBwdWJsaWMgRm9yd2FyZGVlIHsgfTsKCnRlbXBs
YXRlPGludCBwYXJhbT4gY2xhc3MgQ2xpZW50Q2xhc3MgewpwdWJsaWM6CiAgdHlwZWRlZiBTb21l
Q2xhc3M8cGFyYW0+IE15Q2xhc3M7IC8vIHRyaWdnZXJzIElDRQogIC8vdHlwZWRlZiBGb3J3YXJk
ZXI8U29tZUNsYXNzPHBhcmFtPiA+IE15Q2xhc3M7IC8vIGRvZXNuJ3QKCiAgdHlwZW5hbWUgTXlD
bGFzczo6SW5uZXJDbGFzczxkb3VibGU+IGF0dHJpYnV0ZTsgLy8gQkFORyEKfTsKCi8vIGV4cGxp
Y2l0bHkgaW5zdGFudGlhdGUKdGVtcGxhdGUgQ2xpZW50Q2xhc3M8MT47CgovLyBFT0YK


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