[llvm-bugs] [Bug 33806] New: clang: #line directives are skipped in preprocessor

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jul 15 17:48:37 PDT 2017


            Bug ID: 33806
           Summary: clang: #line directives are skipped in preprocessor
           Product: clang
           Version: 3.8
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: igor.liferenko at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 18796
  --> https://bugs.llvm.org/attachment.cgi?id=18796&action=edit
prog.c and prog.w

#line directives in situations like this

  #if 1==0
  #line ...

must be honored to correctly compile output from ctangle.
Otherwise warnings, and debug line numbers are all wrong.

Steps to reproduce: take attached "prog.c" and "prog.w", compile "prog.c",
open it in debugger and go step by step.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170716/e6aeb3ff/attachment.html>

More information about the llvm-bugs mailing list