OSDN Git Service

PR c++/53549
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / ptrmem8.C
index c0a1fa3..d0473f5 100644 (file)
@@ -11,10 +11,14 @@ struct B
 
 struct D : B {};
 
-template <int (D::*fun)() const> int Get();
+template <int (D::*fun)() const> int Get(); // { dg-message "note" }
 
 int main () 
 {
-  Get<&B::I>();   // { dg-error "no matching function" }
-  Get<&D::I>();   // { dg-error "no matching function" }
+  Get<&B::I>();   // { dg-error "not a valid template argument" "not valid" }
+  // { dg-error "no match" "no match" { target *-*-* } 18 }
+  // { dg-message "note" "note" { target *-*-* } 18 }
+  Get<&D::I>();   // { dg-error "not a valid template argument" "not valid" }
+  // { dg-error "no match" "no match" { target *-*-* } 21 }
+  // { dg-message "note" "note" { target *-*-* } 21 }
 }