[LLVMbugs] [Bug 7673] New: Inline asm parse difference from GCC

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 19 20:52:52 PDT 2010


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

           Summary: Inline asm parse difference from GCC
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: chandlerc at gmail.com
                CC: llvmbugs at cs.uiuc.edu


This isn't a standards issue, as its a GCC extension, but it seems we should
match GCC's behavior in that case:


% cat t.cc
void f() {
  __asm__ ("" : : :);
}

% clang -fsyntax-only t.cc
t.cc:2:20: error: expected string literal
  __asm__ ("" : : :);
                   ^
1 error generated.

GCC accepts this happily.

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