public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/1771: Very strange using/const bug
@ 2002-02-23 15:47 rodrigc
0 siblings, 0 replies; 2+ messages in thread
From: rodrigc @ 2002-02-23 15:47 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, hyrosen, nobody
Synopsis: Very strange using/const bug
State-Changed-From-To: analyzed->closed
State-Changed-By: rodrigc
State-Changed-When: Sat Feb 23 15:45:45 2002
State-Changed-Why:
gcc 3.0.4 prints:
"not const, not const, "
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=1771
^ permalink raw reply [flat|nested] 2+ messages in thread
* c++/1771: Very strange using/const bug
@ 2001-04-01 0:00 hyrosen
0 siblings, 0 replies; 2+ messages in thread
From: hyrosen @ 2001-04-01 0:00 UTC (permalink / raw)
To: gcc-gnats
>Number: 1771
>Category: c++
>Synopsis: Very strange using/const bug
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Thu Jan 25 10:26:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Hyman Rosen
>Release: gcc version 2.97 20010124 (experimental)
>Organization:
>Environment:
>Description:
The following code prints "const, not const, ".
The correct result should be "not const, not const, ".
#include <iostream>
struct B {
void a() { std::cout << "not const, "; }
void a() const { std::cout << "const, "; }
};
struct D1 : private B { D1() { a(); } using B::a; };
struct D2 : private B { D2() { a(); } };
int main() { D1 d1; D2 d2; }
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
>From reichelt@igpm.rwth-aachen.de Sun Apr 01 00:00:00 2001
From: reichelt@igpm.rwth-aachen.de
To: gcc-gnats@gcc.gnu.org
Subject: c++/1779: operator new with wrong argument type crashes compiler
Date: Sun, 01 Apr 2001 00:00:00 -0000
Message-id: <20010126141608.27017.qmail@sourceware.cygnus.com>
X-SW-Source: 2001-q1/msg00731.html
Content-length: 975
>Number: 1779
>Category: c++
>Synopsis: operator new with wrong argument type crashes compiler
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Fri Jan 26 06:26:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Volker Reichelt
>Release: gcc version 2.96.20000920 on IRIX 6.5
>Organization:
>Environment:
IRIX 6.5 on SGI O2 with MIPS R5000 processor
>Description:
A wrong argument type for "new" in a class/struct like
struct Bogus { void* operator new(char); };
causes an ICE:
NewBug.cpp:1: `operator new' takes type `size_t' as first parameter
NewBug.cpp:1: Internal error #73.
NewBug.cpp:1: Internal compiler error in , at cp/method.c:1461
>How-To-Repeat:
g++ -c NewBug.cpp
(assuming the single code line is stored in a
file "NewBug.cpp")
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
>From bryce@gcc.gnu.org Sun Apr 01 00:00:00 2001
From: bryce@gcc.gnu.org
To: apbianco@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org
Subject: Re: java/1284
Date: Sun, 01 Apr 2001 00:00:00 -0000
Message-id: <20010303051600.26967.qmail@sourceware.cygnus.com>
X-SW-Source: 2001-q1/msg01936.html
Content-length: 561
The following reply was made to PR java/1284; it has been noted by GNATS.
From: bryce@gcc.gnu.org
To: apbianco@gcc.gnu.org, bryce@albatross.co.nz, gcc-gnats@gcc.gnu.org
Cc:
Subject: Re: java/1284
Date: 3 Mar 2001 05:13:15 -0000
Synopsis: "bad class index 0" error compiling javac/jikes anonymous class bytecode
State-Changed-From-To: open->closed
State-Changed-By: bryce
State-Changed-When: Fri Mar 2 21:13:14 2001
State-Changed-Why:
This is fixed in the gcc 3.0 branch.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=1284&database=gcc
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-02-23 23:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-23 15:47 c++/1771: Very strange using/const bug rodrigc
-- strict thread matches above, loose matches on Subject: below --
2001-04-01 0:00 hyrosen
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).