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]
Other format: [Raw text]

c++/10558: ICE in c_expand_expr in c-common.c:3715


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


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