Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/gomp/pr84791.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
rev | line source |
---|---|
131 | 1 // PR c++/84791 |
2 // { dg-do compile } | |
3 | |
4 typedef int I; | |
5 | |
6 template <int> | |
7 void | |
8 foo () | |
9 { | |
10 I i; | |
11 #pragma omp parallel reduction (I::I: i) // { dg-error "'I' is not a class, namespace, or enumeration" "" { target c++11 } } | |
12 ; // { dg-error "'I' is not a class or namespace" "" { target c++98_only } .-1 } | |
13 } | |
14 | |
15 template void foo<0> (); |