This is the mail archive of the gcc-prs@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++/3748: egcs++ crashes on template specialization from different namespace



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


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