This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/10558: ICE in c_expand_expr in c-common.c:3715
- From: smueller at umich dot edu
- To: gcc-gnats at gcc dot gnu dot org
- Date: 30 Apr 2003 00:44:35 -0000
- Subject: c++/10558: ICE in c_expand_expr in c-common.c:3715
- Reply-to: smueller at umich dot edu
>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: