gcc/testsuite/g++.dg/eh/ctor3.C
raw| 1 | // PR C++/18984 |
| 2 | // We just to ICE as we did not add a |
| 3 | // deference to invisible by reference |
| 4 | // variable |
| 5 | |
| 6 | // { dg-do compile } |
| 7 | |
| 8 | |
| 9 | struct Str |
| 10 | { |
| 11 | Str(const char *chars); |
| 12 | Str& operator=(const char *chars); |
| 13 | virtual operator char*() const; |
| 14 | }; |
| 15 | Str _localName(Str fullname) |
| 16 | { |
| 17 | return (char*)fullname; |
| 18 | } |