public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/3748: egcs++ crashes on template specialization from different namespace
@ 2001-07-20  8:56 siguc
  0 siblings, 0 replies; 2+ messages in thread
From: siguc @ 2001-07-20  8:56 UTC (permalink / raw)
  To: gcc-gnats

>Number:         3748
>Category:       c++
>Synopsis:       egcs++ crashes on template specialization from different namespace
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 20 08:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     siguc@sitrash.com
>Release:        gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
>Organization:
>Environment:
Standard Red hat linux 7.1 for intel PIII, workstation
>Description:
egcs++ crashes when compiling a legal code,
in which template is partially specialized in a different
namespace from it's declaration. A few things can be used
to fix the bug: 1) declare the template in the same namespace as
its specialization and 2) remove empty class Fake{}; from
the partial specialization

>How-To-Repeat:
egcs++ zhopa.cpp
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="zhopa.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="zhopa.cpp"

bmFtZXNwYWNlIE57CiAgdGVtcGxhdGU8Y2xhc3MgVD4gY2xhc3MgVE47Cn0KCnRlbXBsYXRlPGNs
YXNzIFQ+CmNsYXNzIFh7CnB1YmxpYzoKICBUIHQ7Cn07Cgp1c2luZyBOOjpUTjsKLy8gIHVzaW5n
IG5hbWVzcGFjZSBOOwoKdGVtcGxhdGU8Y2xhc3MgVDE+CmNsYXNzIFROPGNsYXNzICBYPFQxPiA+
ewpwdWJsaWM6IAogIHR5cGVkZWYgY2xhc3MgWDxUMT4gVE15Q2xhc3M7CiAgdHlwZWRlZiBUTjxU
TXlDbGFzcz4gVE1lOwogIHR5cGVkZWYgaW50IChUTWU6OipUcGYpKHZvaWQpOwoKICBjbGFzcyBG
YWtlIHt9OwoKICB2aXJ0dWFsIGludCBDMCAodm9pZCk9MDsKCiAgc3RhdGljIFRwZiBWKHZvaWQp
IHRocm93KCl7cmV0dXJuICZUTWU6OkMwO30KfTsKCnVzaW5nIG5hbWVzcGFjZSBOOwppbnQgbWFp
bigpewoKICB0eXBlZGVmIFROPFg8aW50PiA+IFRMOwogIFRMOjpUcGYgcD1UTDo6VigpOwoKfQo=


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: c++/3748: egcs++ crashes on template specialization from different namespace
@ 2001-08-13 13:58 gdr
  0 siblings, 0 replies; 2+ messages in thread
From: gdr @ 2001-08-13 13:58 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, gdr, nobody, siguc

Synopsis: egcs++ crashes on template specialization from different namespace

Responsible-Changed-From-To: unassigned->gdr
Responsible-Changed-By: gdr
Responsible-Changed-When: Mon Aug 13 13:58:33 2001
Responsible-Changed-Why:
    Boo!
State-Changed-From-To: open->closed
State-Changed-By: gdr
State-Changed-When: Mon Aug 13 13:58:33 2001
State-Changed-Why:
    Firstly, your program is ill-formed: You cannot (partially) specialized
    a template in a namespace different from the one in which the primary
    template was declared.
    
    Secondly, GCC-3.x no longer crashes :-)
    
    -- Gaby

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3748&database=gcc


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-08-13 13:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-20  8:56 c++/3748: egcs++ crashes on template specialization from different namespace siguc
2001-08-13 13:58 gdr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).