Internal compiler error

Robert Wilhelm robert@physiol.med.tu-muenchen.de
Wed Sep 10 03:42:00 GMT 1997


Just use -fno-exceptions or -fno-sjlj-exceptions
and your program will compile fine.

> Included is a short program that produces an internal compiler
> error with egcs-970907 on a FreeBSD-current machine if
> compiled optimized.  If -O flags are left off, it compiles.
> 
>   While purning the program down from a few thousand lines...
> often this message was given:
> 
> tt6.C: In function `int main(int, char **)':
> tt6.C:22: internal error--insn does not satisfy its constraints:
> (insn 1128 828 829 (set (reg:SI 4 %esi)
>         (reg/v:SI 63)) 52 {movsi+1} (nil)
>     (nil))
> tt6.C:22: confused by earlier errors, bailing out
> 
> 
> 
> 
> #include <vector>
> 
> #include <strstream.h>
> 
> /*----------------------------------------*/
> 
> struct connection_t {
>   connection_t() {}
> };
> 
> vector<connection_t> connections;    
> 
> /*----------------------------------------*/
> 
> int
> main() {
>   ostrstream str;
> 
>   connections.insert(connections.end(), connection_t());
>   
>   return 0;
> }
> 
> /*----------------------------------------*/
> 




More information about the Gcc-bugs mailing list