This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
bug in "operator ?:"
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: bug in "operator ?:"
- From: Gabriel Dos Reis <Gabriel dot Dos-Reis at cmla dot ens-cachan dot fr>
- Date: 27 Mar 1999 00:36:07 +0100
- Organization: CMLA, ENS Cachan -- CNRS URA 1611 (France)
Consider:
poivre% cat a.C
struct X {};
int main()
{
double* p = (true == false ? throw X() : new double);
}
poivre% g++ a.C
a.C: In function `int main()':
a.C:6: converting to `void' from `double *'
This happens with egcs-2.93.12 on a solaris-2.[56] (I beleive the bug
to be platform independent). EGCS is in error according to 5.16/2.
-- Gaby