c++/4974: Problem to compile nested heritage of templated classes

freissmannl@thmulti.com freissmannl@thmulti.com
Mon Nov 19 12:52:00 GMT 2001


>Number:         4974
>Category:       c++
>Synopsis:       Problem to compile nested heritage of templated classes
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 30 02:06:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Dr. Lothar Freissmann
>Release:        g++ 2.95.3
>Organization:
>Environment:
g++ -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3/specs
gcc version 2.95.3 20010315 (release)

>Description:
g++ -save-temps bug.cpp
bug.cpp:51: Internal compiler error.
bug.cpp:51: Please submit a full bug report.
bug.cpp:51: See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.


The file contains:
1. A templated class
2. a class with a templated subclass which is heriting the templated class.

Bug condition:
If the constructor of the subclass is only declared (Non_BUG = 1) the compiler does not cry; but the compiler fails if the constructor is defined in the subclass (Non_BUGGY = 0).
>How-To-Repeat:
Run the file
>Fix:
As described
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list