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++/6289: partial template specialization and friend



>Number:         6289
>Category:       c++
>Synopsis:       partial template specialization and friend
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 13 15:06:09 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jo Totland
>Release:        g++ 3.0.4, g++ 2.95.4
>Organization:
>Environment:
Debian testing distribution, self-compiled linux kernel version 2.4.18
>Description:
While doing something tricky with templates I got an internal compiler error.

jo@bogon:~/units$ g++-3.0 -ansi -Wall -c minimal.cc
minimal.cc:15: warning: `class my_frobnicator' declares a new type at namespace 
   scope;
   to refer to the inherited type, say `class foo::type'
   (names from dependent base classes are not visible to unqualified name 
   lookup)
minimal.cc:17: Internal compiler error in pop_binding, at cp/decl.c:1186
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

A minimal test program that triggers the bug is included.
>How-To-Repeat:
recompile the included test-program
>Fix:
no idea
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++src; name="minimal.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="minimal.cc"

dGVtcGxhdGUgPHR5cGVuYW1lIEE+IGNsYXNzIGZvbzsKCnN0cnVjdCBiYXIge307CgpzdHJ1Y3Qg
YmFyX2Zyb2JuaWNhdG9yIHt9OwoKdGVtcGxhdGUgPHR5cGVuYW1lIEE+CmNsYXNzIHdoaWNoX2Zy
b2JuaWNhdG9yOwp0ZW1wbGF0ZSA8PiBjbGFzcyB3aGljaF9mcm9ibmljYXRvcjxiYXI+IHsgdHlw
ZWRlZiBiYXJfZnJvYm5pY2F0b3IgdHlwZTsgfTsKCnRlbXBsYXRlIDx0eXBlbmFtZSBBPgpjbGFz
cyBmb28KewogIHR5cGVkZWYgdHlwZW5hbWUgd2hpY2hfZnJvYm5pY2F0b3I8QT46OnR5cGUgbXlf
ZnJvYm5pY2F0b3I7CiAgZnJpZW5kIGNsYXNzIG15X2Zyb2JuaWNhdG9yOwp9Cg==


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