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

--- Comment #13 from Dominique d'Humieres <dominiq at lps dot ens.fr> 
2012-01-23 14:55:08 UTC ---
> Log:
>     PR target/51934
>     * g++.dg/torture/pr51344.C: Use noreturn instead of cdecl.
>
> Should be fixed now.

The use of 'noreturn' yields a warning with g++ 4.6.2 and not an infinite loop:

[macbook] f90/bug% time g++-fsf-4.6 -c pr51344_db.C
pr51344_db.C: In function 'A& operator>>(A&, B<T>&)':
pr51344_db.C:9:12: warning: function declared 'noreturn' has a 'return'
statement [enabled by default]
0.012u 0.024s 0:00.93 3.2%    0+0k 3+13io 0pf+0w

so IMO the test is no longer testing what has been fixed (see comment #8 for a
list of what I have tried).

Reply via email to