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) on powerpc*-*-*
- 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: Sat, 21 Jan 2012 23:15:31 +0000
- Subject: [Bug target/51934] FAIL: g++.dg/torture/pr51344.C -O0 (test for excess errors) on powerpc*-*-*
- Auto-submitted: auto-generated
- References: <bug-51934-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51934
--- Comment #6 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2012-01-21 23:15:31 UTC ---
> The test just should use some attribute that is common to all targets, like
> __attribute__((noinline)) or similar, unless it didn't fail with that attribute
> before the fix. If it didn't, then the test needs to be limited to targets
> that support it.
The attribute format seems to do the trick: it hangs on 4.6.2 and compiles with
recent trunk.
--- ../_clean/gcc/testsuite/g++.dg/torture/pr51344.C 2012-01-20
11:40:19.000000000 +0100
+++ gcc/testsuite/g++.dg/torture/pr51344.C 2012-01-22 00:13:16.000000000
+0100
@@ -4,7 +4,7 @@ class A;
template <class T>
class B
{
- friend __attribute__((cdecl)) A& operator >>(A& a, B& b)
+ friend __attribute__((format)) A& operator >>(A& a, B& b)
{
return a;
}