* g++.dg/cpp1z/direct-enum-init1.C: Correct error message.
authorJason Merrill <jason@gcc.gnu.org>
Tue, 9 May 2017 20:37:57 +0000 (16:37 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 9 May 2017 20:37:57 +0000 (16:37 -0400)
From-SVN: r247815

gcc/testsuite/g++.dg/cpp1z/direct-enum-init1.C

index a17473f86c92876ec971757b0f21ab35c2852fb6..11269ccbe9cdb247e3546ad934bf5e1a69eae51d 100644 (file)
@@ -22,7 +22,7 @@ foo ()
   C c1 { s };
   D d1 { D(t) };       // { dg-error "invalid cast from type 'T' to type 'D {enum}'" }
   D d2 { t };          // { dg-error "cannot convert 'T' to 'D {enum}' in initialization" "" { target c++14_down } }
-                       // { dg-error "invalid cast from type 'T' to type 'D'" "" { target c++1z } .-1 }
+                       // { dg-error "invalid cast from type 'T' to type 'D {enum}'" "" { target c++1z } .-1 }
   D d3 { 9 };          // { dg-error "cannot convert 'int' to 'D {enum}' in initialization" "" { target c++14_down } }
   D d4 { l };          // { dg-error "cannot convert 'long int' to 'D {enum}' in initialization" "" { target c++14_down } }
   D d5 { D(l) };
@@ -89,7 +89,7 @@ foo2 ()
   C c1 { s };
   D d1 { D(t) };       // { dg-error "invalid cast from type 'T' to type 'D {enum}'" }
   D d2 { t };          // { dg-error "cannot convert 'T' to 'D {enum}' in initialization" "" { target c++14_down } }
-                       // { dg-error "invalid cast from type 'T' to type 'D'" "" { target c++1z } .-1 }
+                       // { dg-error "invalid cast from type 'T' to type 'D {enum}'" "" { target c++1z } .-1 }
   D d3 { 9 };          // { dg-error "cannot convert 'int' to 'D {enum}' in initialization" "" { target c++14_down } }
   D d4 { l };          // { dg-error "cannot convert 'long int' to 'D {enum}' in initialization" "" { target c++14_down } }
   D d5 { D(l) };