diff mbox

[4.9,testsuite] : Fix g++.dg/cpp1y/feat-cxx14.C testsuite errors

Message ID 406FB6D2-6A2F-44A6-90CD-4B9BCCB38FB4@comcast.net
State New
Headers show

Commit Message

Mike Stump Oct. 9, 2014, 9:54 p.m. UTC
On Oct 9, 2014, at 11:56 AM, Uros Bizjak <ubizjak@gmail.com> wrote:
> 2014-10-09  Uros Bizjak  <ubizjak@gmail.com>
> 
>    * g++.dg/cpp1y/feat-cxx14.C: Variable templates not in yet.
>    (dg-do): Use c++1y target.
> 
> Tested on x86_64. OK for branch?

So, I need Ed or Jason to review it…

Comments

Ed Smith-Rowland Oct. 10, 2014, 12:09 a.m. UTC | #1
On 10/09/2014 05:54 PM, Mike Stump wrote:
> On Oct 9, 2014, at 11:56 AM, Uros Bizjak <ubizjak@gmail.com> wrote:
>> 2014-10-09  Uros Bizjak  <ubizjak@gmail.com>
>>
>>     * g++.dg/cpp1y/feat-cxx14.C: Variable templates not in yet.
>>     (dg-do): Use c++1y target.
>>
>> Tested on x86_64. OK for branch?
> So, I need Ed or Jason to review it…
>
Yes, please put this in.
cxx14 was added to 5.0 and shadowed the error about variable templates.
Argh.

The patch is good.

Thank you all!
Ed
Mike Stump Oct. 10, 2014, 12:11 a.m. UTC | #2
On Oct 9, 2014, at 5:09 PM, Ed Smith-Rowland <3dw4rd@verizon.net> wrote:
> On 10/09/2014 05:54 PM, Mike Stump wrote:
>> On Oct 9, 2014, at 11:56 AM, Uros Bizjak <ubizjak@gmail.com> wrote:
>>> 2014-10-09  Uros Bizjak  <ubizjak@gmail.com>
>>> 
>>>    * g++.dg/cpp1y/feat-cxx14.C: Variable templates not in yet.
>>>    (dg-do): Use c++1y target.
>>> 
>>> Tested on x86_64. OK for branch?

Ok given the below review.

>> So, I need Ed or Jason to review it…
>> 
> Yes, please put this in.
> cxx14 was added to 5.0 and shadowed the error about variable templates.
> Argh.
> 
> The patch is good.
diff mbox

Patch

Index: g++.dg/cpp1y/feat-cxx14.C
===================================================================
--- g++.dg/cpp1y/feat-cxx14.C	(revision 216044)
+++ g++.dg/cpp1y/feat-cxx14.C	(working copy)
@@ -1,4 +1,4 @@ 
-// { dg-do compile { target c++14 } }
+// { dg-do compile { target c++1y } }
 // { dg-options "-I${srcdir}/g++.dg/cpp1y -I${srcdir}/g++.dg/cpp1y/testinc" }
 
 // Begin C++11 tests.
@@ -125,10 +125,9 @@ 
 #  error "__cpp_aggregate_nsdmi"
 #endif
 
-#ifndef __cpp_variable_templates
+//  Variable templates not in yet.
+#ifdef __cpp_variable_templates
 #  error "__cpp_variable_templates"
-#elif __cpp_variable_templates != 201304
-#  error "__cpp_variable_templates != 201304"
 #endif
 
 #ifndef __cpp_digit_separators