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++/84702] ICE with default tmpl arg of overload set
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
pr81011.C
blob
4abd609596cbca822788de5201d6ce648b1bdbdb
1
// PR c++/81011
2
// { dg-do compile }
3
4
class A { A (const A&); }; // { dg-message "declared private here" }
5
void foo (const A&);
6
7
void
8
bar (A& a)
9
{
10
#pragma omp task // { dg-error "is private within this context" }
11
foo (a);
12
}
13
14
void
15
baz (A& a)
16
{
17
#pragma omp task firstprivate (a) // { dg-error "is private within this context" }
18
foo (a);
19
}