[Bug c++/36696] Default constructor instance definition with empty argument list quietly ignored

2008-07-02 Thread mike dot allen at facsim dot org
--- Comment #1 from mike dot allen at facsim dot org 2008-07-02 14:41 --- Is the line: Raii raii(); being interpreted by the compiler as the declaration of a function that takes no arguments and returns a Raii instance? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36696

[Bug c++/36696] Default constructor instance definition with empty argument list quietly ignored

2008-07-02 Thread dseketel at redhat dot com
--- Comment #2 from dseketel at redhat dot com 2008-07-02 21:09 --- Yes, foo bar (); is indeed the declaration of a function bar of type foo that takes no arguments in parameter. I believe gcc is right there. -- dseketel at redhat dot com changed: What|Removed

[Bug c++/36696] Default constructor instance definition with empty argument list quietly ignored

2008-07-02 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2008-07-02 21:16 --- This is an ambiguous in the C++ standard that is resolved via making it a function declaration. That is: Raii raii (); Is declaring a function, raii, that returns a Raii type. -- pinskia at gcc dot gnu dot