c++/2080: g++ runs out of memory if reference parameter is initialized with 0

gcc-bug@vogtner.de gcc-bug@vogtner.de
Sat Feb 24 06:56:00 GMT 2001


>Number:         2080
>Category:       c++
>Synopsis:       g++ runs out of memory if reference parameter is initialized with 0
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 24 06:56:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Stefan Vogtner
>Release:        gcc version 2.95.2 19991024 (release)
>Organization:
>Environment:
Linux client0 2.2.13 #11 Son Jan 21 17:58:52 CET 2001 i686 unknown
>Description:
bash-2.03$ g++ gcc-bug-2001-02-24.01.cc 
g++: Internal compiler error: program cc1plus got fatal signal 
>How-To-Repeat:
#include <vector>
using namespace std;
class V {
public:
   V (int i, const V &rhs = 0)
   { }
};
int main ()
{
   vector<V> v;
   v.push_back (V (0));
   return 0;
}
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list