www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/04/21/09:13:56

Date: Fri, 21 Apr 1995 06:53:36 -0400
From: dj (DJ Delorie)
To: knuutila AT cs DOT utu DOT fi
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: CC1PLUS BUG?

> Anyway, here's the troublemaker. Save as "test.cc" and try to compile
> with "gcc -c test.cc", for example.
> 
> ==================== BEGIN TEST.CC ===============
> /*
>    When compiled, cc1plus crashes, cc1 does not
> */
> void f1(char *s) { };
> int  f2(char *s, int n) { };
> 
> int main() {
>    int  result;
>    result = (f1("string"), f2("string", 1));
> }
> ==================== END TEST.CC ===============

 /usr/local/lib/gcc-lib/mips-sgi-irix5.2/2.6.3/cc1plus /var/tmp/cca000pm.ii -quiet -dumpbase test.cc -version -o /var/tmp/cca000pm.s
GNU C++ version 2.6.3 [AL 1.1, MM 40] SGI running IRIX 5.0 compiled by GNU C version 2.6.3.
test.cc: In function `int main()':
test.cc:9: Internal compiler error.
test.cc:9: Please submit a full bug report to `bug-g++@prep.ai.mit.edu'.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019