public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/10558: ICE in c_expand_expr in c-common.c:3715
@ 2003-04-30 0:46 smueller
0 siblings, 0 replies; only message in thread
From: smueller @ 2003-04-30 0:46 UTC (permalink / raw)
To: gcc-gnats
>Number: 10558
>Category: c++
>Synopsis: ICE in c_expand_expr in c-common.c:3715
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Wed Apr 30 00:46:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: smueller@umich.edu
>Release: gcc version 3.2.3 20030415 (Debian prerelease)
>Organization:
>Environment:
Debian 2.4.17
>Description:
The following invalid c++ class produces an internal compiler error in at the map.insert(std::pair) statement, in c_expand_expr, which is in c-common.c:3715.
--------------------------
#include <map>
class test {
public:
test(){};
~test(){};
void Test();
private:
std::multimap<int, char* > mMap;
};
void test::Test() { mMap.insert(std::pair); } //Illegal
----------------------------------
Output from g++:
In member function `void test::Test()':
test.cpp:13: Internal compiler error in c_expand_expr, at c-common.c: 3714
This may be related to bug 3079 and 2650. The code is clearly not legal, but probably shouldn't have produced such an error.
>How-To-Repeat:
invoke g++ test.cpp -o test.o
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-04-30 0:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-30 0:46 c++/10558: ICE in c_expand_expr in c-common.c:3715 smueller
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).