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

            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: unassignedclangb...@nondot.org
          Reporter: igor.lifere...@gmail.com
                CC: llvm-bugs@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 ...
  ...
  #endif

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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to