mich...@ubuntu:~/src/misc$ cat test.cpp #include <cstdlib> int main() { int *x = new int(); x->~int(); exit(0); } mich...@ubuntu:~/src/misc$ g++ test.cpp -o test test.cpp: In function int main(): test.cpp:4: error: expected class-name before int test.cpp:4: error: expected ; before int
-- Summary: g++ chokes on pseudo destructor call Product: gcc Version: 4.4.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: miklcct at gmail dot com GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43253