This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/51934] FAIL: g++.dg/torture/pr51344.C -O0 (test for excess errors) due to "cdecl attribute ignored" warning
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 23 Jan 2012 14:55:08 +0000
- Subject: [Bug target/51934] FAIL: g++.dg/torture/pr51344.C -O0 (test for excess errors) due to "cdecl attribute ignored" warning
- Auto-submitted: auto-generated
- References: <bug-51934-4@http.gcc.gnu.org/bugzilla/>
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).