[LLVMbugs] [Bug 7009] New: 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 09:34:29 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7009

           Summary: error: empty parameter list defined with a typedef of
                    'void' not allowed in C++
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: ich at az2000.de
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


In file included from
/Users/az/Programmierung/openlierox/./build/Xcode/freealut/include/AL/alut.h:8:
/System/Library/Frameworks/OpenAL.framework/Headers/alc.h:182:68: error: empty
parameter list defined with a
      typedef of 'void' not allowed in C++
ALC_API ALCcontext *    ALC_APIENTRY alcGetCurrentContext( ALCvoid );


Testcase:

typedef void V;
void foo(V);


The error says that this violates C++. GCC compiles it though. Should the
OpenAL headers be fixed?

-- 
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