https://llvm.org/bugs/show_bug.cgi?id=22973

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |INVALID

--- Comment #2 from [email protected] ---
The C11 standard only says (N1570 ยง6.10.8.1p1):

| __LINE__ - The presumed line number (within the current source file) of the
| current source line (an integer constant)

As the two invocations of the "inner" macro are originally on two different
lines, I'd say that clang is correct here. I also think that "presumed" leaves
preprocessor implementations a bit of leeway.

BTW: clang is not affected by the GCC bug you mentioned.

I'm closing this bug. Please feel free to reopen if you disagree.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to