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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
crash20.C
blob
44f6c8c447a15145d7e76922640ae958d5c6fd2f
1
// { dg-do assemble }
2
3
template <class T = int>
4
struct A { const T x; A() : x(0) { } A(T x) : x(x) { } };
5
6
template <class B>
7
void func () { B y; y = B(); } // { dg-error "" } can't use default assignment
8
9
int main (void) { func< A<> >(); }