[LLVMbugs] [Bug 7009] error: empty parameter list defined with a typedef of 'void' not allowed in C++

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat May 1 10:50:12 PDT 2010


John McCall <rjmccall at apple.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |rjmccall at apple.com
         Resolution|                            |INVALID

--- Comment #1 from John McCall <rjmccall at apple.com> 2010-05-01 12:50:12 CDT ---
Clang is correct, this is forbidden in C++;  only "(void)" is allowed.  Also,
both clang and gcc accept this in C mode, and both clang and gcc reject this in
C++ mode, so I really see no incentive to change it.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list