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
/
other
/
error6.C
blob
9b403c7207bc20e4b0a400d5cabffc9de46eb648
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
5
template <int N>
6
struct A {};
7
8
struct B
9
{
10
static int foo(void);
11
};
12
13
template <class T>
14
A<sizeof(T::foo())> func(void);
15
16
int main()
17
{
18
func<B>(); // { dg-error "sorry, unimplemented" }
19
}