repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/84791
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
pr84791.C
blob
4e6d3b8fd444a76abcbf7b30e5b8d28cbc32e5dc
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> ();