On 3/17/20 9:04 AM, Jonathan Wakely wrote:
On 17/03/20 13:02 +0000, Jonathan Wakely wrote:
Shouldn't the test use { dg-do compile { target c++11 } } instead of:

+// { dg-do compile }
+// { dg-options "-std=c++11" }

?


With that change I see:

UNSUPPORTED: g++.dg/ext/pr94197.C  -std=c++98
PASS: g++.dg/ext/pr94197.C  -std=c++14 (test for excess errors)
PASS: g++.dg/ext/pr94197.C  -std=c++17 (test for excess errors)
PASS: g++.dg/ext/pr94197.C  -std=c++2a (test for excess errors)

rather than:

PASS: g++.dg/ext/pr94197.C   (test for excess errors)

Yes, good point.

Jason


Reply via email to