struct a {}; int main() { a* ptr = &a(); return 0;}
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:4:14: error: taking address of temporary [-fpermissive] a* ptr = &a(); ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!