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]
Other format: [Raw text]

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

[Get raw message]

>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:


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