Commit 10d8c51f by Paolo Carlini Committed by Paolo Carlini

re PR c++/45033 ("delete" does overload resolution for class operands, but shouldn't.)

2017-09-18  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/45033
	* g++.dg/expr/delete1.C: New.

From-SVN: r252924
parent db624b3b
2017-09-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/45033
* g++.dg/expr/delete1.C: New.
2017-09-18 Bob Duff <duff@adacore.com>
* gnat.dg/validity_check.adb: New testcase.
......
// PR c++/45033
struct A {
operator int*() { return 0; }
operator int*() const { return 0; }
};
int main() {
A a;
int *p = a;
delete a;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment