http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51934

--- Comment #17 from Dominique d'Humieres <dominiq at lps dot ens.fr> 
2012-01-23 15:50:16 UTC ---
> g++.dg/torture/pr51344.C: Limit to x86.

Note that using 'format' instead of 'cdecl' hangs also on
powerpc-apple-darwin9:

[karma] f90/bug% time g++-fsf-4.6 pr51344_db.C
^C0.002u 0.006s 1:35.05 0.0%    0+0k 2+7io 46pf+0w
 ^
 | interrupted
[karma] f90/bug% time /opt/gcc/gcc4.7w/bin/g++ -c pr51344_db.C
0.036u 0.071s 0:01.50 6.6%    0+0k 16+10io 792pf+0w
[karma] f90/bug% /opt/gcc/gcc4.7w/bin/g++ -v
Using built-in specs.
COLLECT_GCC=/opt/gcc/gcc4.7w/bin/g++
COLLECT_LTO_WRAPPER=/opt/gcc/gcc4.7w/libexec/gcc/powerpc-apple-darwin9.8.0/4.7.0/lto-wrapper
Target: powerpc-apple-darwin9.8.0
Configured with: ../work/configure --prefix=/opt/gcc/gcc4.7w
--enable-languages=c,c++,fortran,objc,obj-c++,java,ada,lto --with-gmp=/opt/mp
--with-system-zlib --with-cloog=/opt/mp --enable-lto --enable-cloog-backend=isl
Thread model: posix
gcc version 4.7.0 20120121 (experimental) [trunk revision 183381p3] (GCC) 

If 'format' is invalid in this context, g++ should probably emit an error
instead of hanging.

Reply via email to