From 824c3184d7364aa92e9990b4f23cd5ede4ca53df Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Tue, 9 May 2017 16:37:57 -0400 Subject: [PATCH] * g++.dg/cpp1z/direct-enum-init1.C: Correct error message. From-SVN: r247815 --- gcc/testsuite/g++.dg/cpp1z/direct-enum-init1.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/g++.dg/cpp1z/direct-enum-init1.C b/gcc/testsuite/g++.dg/cpp1z/direct-enum-init1.C index a17473f86c9..11269ccbe9c 100644 --- a/gcc/testsuite/g++.dg/cpp1z/direct-enum-init1.C +++ b/gcc/testsuite/g++.dg/cpp1z/direct-enum-init1.C @@ -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) }; -- 2.30.2