[LLVMbugs] [Bug 13739] New: nested __if_exists statements are not supported

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Aug 31 07:10:02 PDT 2012


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

             Bug #: 13739
           Summary: nested __if_exists statements are not supported
           Product: clang
           Version: 3.1
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: avakar at ratatanek.cz
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


The following will compile cleanly on vs10

    void foo()
    {
        int x;
        __if_exists(x) {
            __if_exists(y) {
            }
        }
    }

whereas clang produces an error

    > clang -cc1 test.cpp -fsyntax-only -fms-compatibility
    test.cpp:8:3: error: expected expression
                    __if_exists(y) {
                    ^

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