Commit c654a67e by Jason Merrill

update

From-SVN: r23336
parent ff08e6b5
...@@ -9,5 +9,5 @@ class A { ...@@ -9,5 +9,5 @@ class A {
class B: public A {}; class B: public A {};
class C: public A {}; class C: public A {};
class D: public C, public B { class D: public C, public B {
void g () { A::f(); } // gets bogus error - wrongly ambiguous static member call, XFAIL *-*-* void g () { A::f(); } // gets bogus error - wrongly ambiguous static member call
}; };
...@@ -9,5 +9,5 @@ struct A { ...@@ -9,5 +9,5 @@ struct A {
void g (void (A::*)()); void g (void (A::*)());
void h () { void h () {
g (A::f); // ERROR - failed conversion to method pointer XFAIL *-*-* g (A::f); // ERROR - failed conversion to method pointer
} }
// Build don't link:
// Special g++ Options: -g -fexternal-templates
// GROUPS passed templates // GROUPS passed templates
// Bug: g++ emits template instances when it shouldn't. // Bug: g++ emits template instances when it shouldn't.
// Special g++ Options: -g -fexternal-templates // Special g++ Options: -g -fexternal-templates
#pragma implementation "irrelevant_file" #pragma implementation "irrelevant_file"
#line 1 "wa.h" #line 1 "template18.h"
#pragma interface // ERROR - , XFAIL *-*-* #pragma interface
template <class T> inline T min (T a, T b) { return a<b?a:b; } template <class T> inline T min (T a, T b) { return a<b?a:b; }
#line 3 "wa.C" #line 12 "template18.C"
main() main()
{ {
min (1, 1); min (1, 1); // ERROR - undefined
}// UNKNOWN "min" }
// Test that function calls using thunks work right. // Test that variadic function calls using thunks work right.
// Note that this will break on any target that uses the generic thunk
// support, because it doesn't support variadic functions.
// Special g++ Options: -fvtable-thunks // Special g++ Options: -fvtable-thunks
// excess errors test - XFAIL mips*-*-* alpha*-*-* rs6000-*-* powerpc-*-eabi m68k-*-coff m68k-motorola-sysv m88k-motorola-sysv3 // excess errors test - XFAIL mips*-*-* alpha*-*-* rs6000-*-* powerpc-*-eabi m68k-*-coff m68k-motorola-sysv m88k-motorola-sysv3
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment