| 1 |
// { dg-do assemble } |
| 2 |
// GROUPS passed conversions |
| 3 |
// cvt file |
| 4 |
// Message-Id: <[email protected]> |
| 5 |
// From: [email protected] (Peter C. McCluskey) |
| 6 |
// Subject: illegal code compiles silently |
| 7 |
// Date: Thu, 20 May 93 21:24:22 -0400 |
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
class Point {}; |
| 12 |
class Line_Segment{ public: Line_Segment(const Point&){} }; |
| 13 |
class Node { public: Point Location(){ Point p; return p; } }; |
| 14 |
|
| 15 |
int main() |
| 16 |
{ |
| 17 |
Node** node1; |
| 18 |
Line_Segment(node1->Location()); // intended (*node1)// { dg-error "" } .* |
| 19 |
} |
| 20 |
|