This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/2727: g++ crash with template classes with tow version of operator&
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/2727: g++ crash with template classes with tow version of operator&
- From: boehme at informatik dot hu-berlin dot de
- Date: 3 May 2001 10:57:13 -0000
- Cc: loewis at informatik dot hu-berlin dot de
- Reply-To: boehme at informatik dot hu-berlin dot de
>Number: 2727
>Category: c++
>Synopsis: g++ crash with template classes with tow version of operator&
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Thu May 03 04:06:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Harald Böhme
>Release: gcc CVS HEAD of gcc-3_0-branch Wed May 2 18:37:24 CEST 2001
>Organization:
>Environment:
Solaris 2.8
>Description:
If in the template class are two versions of the operator &,
which only differ in "const" the compiler chrashs at
an assigment.
>How-To-Repeat:
c++ -c Gram1.cpp
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="Gram1.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="Gram1.cpp"
Y2xhc3MgZm9vCnsKfTsKCnRlbXBsYXRlPGNsYXNzIFQ+CmNsYXNzIGJhcgp7CnB1YmxpYzoKICAg
IG9wZXJhdG9yIGNvbnN0IFQmKCkgY29uc3QgOwogICAgb3BlcmF0b3IgVCYoKSA7Cgp9OwoKCnRl
bXBsYXRlPGNsYXNzIFQsIGNsYXNzIFJlZiwgY2xhc3MgTm9kZVB0ciwgY2xhc3MgTGlzdFB0cj4K
Y2xhc3MgaXRlcmF0b3JfdGVtcGxhdGUKewpwdWJsaWM6CiAgICBpdGVyYXRvcl90ZW1wbGF0ZSgp
OwogICAgUmVmIG9wZXJhdG9yKigpIGNvbnN0OwoKfTsKCnN0cnVjdCBJZGxEZWNsYXJhdG9yCnsK
fTsKCnR5cGVkZWYgYmFyPCBJZGxEZWNsYXJhdG9yID4gSWRsRGVjbGFyYXRvcl9iYXI7CmludAp5
eXBhcnNlKCkKCnsKCiAgaXRlcmF0b3JfdGVtcGxhdGU8SWRsRGVjbGFyYXRvcl9iYXIsSWRsRGVj
bGFyYXRvcl9iYXImLGZvbyosZm9vKj4gZGVjbEl0ZXI7CiAgY29uc3QgSWRsRGVjbGFyYXRvciYg
ZGVjbGFyYXRvciA9ICpkZWNsSXRlcjsKICByZXR1cm4gMTsKfQo=