repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
other
/
error6.C
blob
21180d765ab1bf4cc890b42df29e452e0b43cb22
1
// { dg-do compile }
2
// Make sure we emit a decent error message when trying to mangle an
3
// expression not supported by the C++ ABI due to a defect.
4
// Update: Better to make it supported, I think...
5
6
template <int N>
7
struct A {};
8
9
struct B
10
{
11
static int foo(void);
12
};
13
14
template <class T>
15
A<sizeof(T::foo())> func(void);
16
17
int main()
18
{
19
func<B>();
20
}