c++/2081: Zero cast to reference in constructor default parameter causes ICE

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


>Number:         2081
>Category:       c++
>Synopsis:       Zero cast to reference in constructor default parameter causes ICE
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 24 06:56:04 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Stefan Vogtner
>Release:        gcc version 2.95.2 19991024 (release)
>Organization:
>Environment:

>Description:
bash-2.03$ g++ gcc-bug-2001-02-24.02.cc 
gcc-bug-2001-02-24.02.cc:4: Internal compiler error.
gcc-bug-2001-02-24.02.cc:4: Please submit a full bug report.
gcc-bug-2001-02-24.02.cc:4: See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for instructions.
>How-To-Repeat:
class V {
public:
   V (int, V &rhs = (V &)0) 
   {
   }
};
>Fix:

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



More information about the Gcc-bugs mailing list