reassign 361707 gcc-snapshot tags 361707 +upstream forwarded 361707 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9278 thanks
I agree that this is not really a bug in openal, though it's easy enough to work around. The C99 standard says (I believe; I'm afraid I only have a draft): "The special case of an unnamed parameter of type void as the only item in the list specifies that the function has no parameters." (6.7.5.3/10) The C++98 and C++03 standards, and the working draft for the next version, say: "The parameter list (void) is equivalent to the empty parameter list." (8.3.5/2) (In C++ the empty parameter list is *not* a special case as it is in C.) So for C++ this special case is defined syntactically whereas for C it is defined in terms of type identity, thus taking type aliases into account. Since the feature only exists in C++ for C compatibility, it seems to be a defect in the C++ standard that the case is defined differently, and accordingly I have submitted a defect report. I think g++ should not be changed to follow the C++ standard in this respect until this has been resolved by the C++ standard committee. Ben. -- Ben Hutchings Unix is many things to many people, but it's never been everything to anybody.
signature.asc
Description: This is a digitally signed message part

