OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/9335
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
nontype14.C
1
// PR c++/23789
2
3
template <int W> struct X {
4
template <int W2>
5
X< (W+(W&&W) > 1 ? W+(W&&W) : 1)+1>
6
operator + (const X<W2>&) const;
7
};
8
9
template <int dummy> void foo()
10
{
11
X<6> A,B;
12
A + B;
13
}