repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
template
/
crash16.C
blob
f80dd10644c557d580903cf2919dec585f6e0a3c
1
// { dg-do compile }
2
3
// Origin: Alexander Stippler <stip@mathematik.uni-ulm.de>
4
// PR c++/10079
5
6
template <bool> struct A {};
7
8
template <typename> struct B
9
{
10
enum { e };
11
};
12
13
template <typename T> A<(B<T>::e && 0)> foo(T) {}
14
15
template <typename T> void foo(B<T>) {}
16
17
void bar()
18
{
19
B<int> b;
20
foo(b);
21
}