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
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
crash20.C
blob
f910294e65cc3a34dc017abf700cdf2a0addde1a
1
// { dg-do compile }
2
3
template <class T = int>
4
struct A { // { dg-error "assignment" }
5
const T x;
6
A() : x(0) { } A(T x) : x(x) { }
7
};
8
9
template <class B>
10
void func ()
11
{
12
B y;
13
y = B(); // { dg-error "synthesized" }
14
}
15
16
int main (void) { func< A<> >(); }