[llvm-bugs] [Bug 35580] New: Inconsistent -MD/-MG behavior
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Dec 8 06:54:40 PST 2017
https://bugs.llvm.org/show_bug.cgi?id=35580
Bug ID: 35580
Summary: Inconsistent -MD/-MG behavior
Product: clang
Version: 5.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: boris at codesynthesis.com
CC: llvm-bugs at lists.llvm.org
Created attachment 19531
--> https://bugs.llvm.org/attachment.cgi?id=19531&action=edit
Reproducing script.
The attached reproducer shows inconsistent behavior between -MD and -MG modes:
+ clang++ -w -MQ ^ -x c++ -MD -E -frewrite-includes -MF - -o unit.o.ii unit.cxx
unit.cxx:1:10: error: 'hello.hpp' file not found with <angled> include; use
"quotes" instead
#include <hello.hpp>
^~~~~~~~~~~
"hello.hpp"
^: unit.cxx hello.hpp
1 error generated.
+ echo $?
1
+ clang++ -w -MQ ^ -x c++ -M -MG unit.cxx
^: unit.cxx hello.hpp
+ echo $?
0
It cannot be both an invalid include and a potentially generated header.
--
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/20171208/09498726/attachment.html>
More information about the llvm-bugs
mailing list