[LLVMbugs] [Bug 3872] New: parse-noop failure
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Tue Mar 24 08:59:16 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=3872
Summary: parse-noop failure
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: parser
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
The following code fails to parse with parse-noop:
--
ddunbar at 67-218-107-93:tmp$ cat t.c
struct s0 { char c; };
void f0(void) {
int len = ((((__builtin_offsetof(struct s0, c))) - 1) &
~(((__builtin_offsetof(struct s0, c))) - 1));
}
ddunbar at 67-218-107-93:tmp$ clang -fsyntax-only /tmp/t.c
ddunbar at 67-218-107-93:tmp$ clang -fsyntax-only /tmp/t.c -Xclang -parse-noop
/tmp/t.c:4:56: error: expected expression
~(((__builtin_offsetof(struct s0, c))) - 1));
^
1 diagnostic generated.
--
--
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