c++/967: egcs 2.91 ice
mark@kuchel.net
mark@kuchel.net
Sun Dec 3 16:36:00 GMT 2000
>Number: 967
>Category: c++
>Synopsis: egcs 2.91 ice
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Dec 03 16:36:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: Mark Kuchel
>Release: gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
>Organization:
>Environment:
Red Hat 6.2 egcs 1.1.2-30 kernel 2.2.14-12
>Description:
When trying to a char * = string.[reference|pointer], there is an error generated, but then there is an ICE.
test.cc: In function `int main()':
test.cc:7: warning: invalid use of type decl `typedef char & basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> >::reference' as expression
test.cc:7: warning: assignment to `char *' from `char' lacks a cast
test.cc:7: Internal compiler error 40.
(Where to post snipped).
>How-To-Repeat:
#include <string>
int main(void){
char *buffer;
string buffer2;
buffer = buffer2.reference;
return 0;
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list