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
2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
crash100.C
blob
c67ae2eca38da234047010ad6a79ea1a9839aff3
1
// PR c++/44628
2
3
template <typename T>
4
class Temp
5
{
6
int Val;
7
public:
8
operator T&(void) { return Val; }
9
10
virtual T& operator=(T a ) // { dg-error "overriding" }
11
{
12
Val = a;
13
return Val;
14
}
15
};
16
17
class Int : public Temp<int>
18
{
19
public:
20
Int& operator=(int a) // { dg-error "conflicting return type" }
21
{
22
return (*this);
23
}
24
};