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
/
pr77578.C
blob
d92fddf970be82026d3264572619eedd1137d9ef
1
// PR c++/77578
2
// { dg-do compile }
3
4
template <typename T>
5
class A
6
{
7
};
8
9
template <typename T>
10
struct B
11
{
12
};
13
14
template <typename T>
15
struct B <A <T> >
16
{
17
typedef A <T> C;
18
typedef typename C::D D;
19
20
template <typename U>
21
static void
22
foo (const D x, const D y)
23
{
24
U u;
25
{
26
#pragma omp parallel for
27
for (u.bar().y() = x.y(); u.bar().y() <= y.y(); u.bar().y()++) // { dg-error "expected" }
28
;
29
}
30
}
31
};