This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/28165] New: _Pragma GCC system_header broken
- From: "sabre at nondot dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jun 2006 01:12:40 -0000
- Subject: [Bug preprocessor/28165] New: _Pragma GCC system_header broken
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
In a main translation unit, this:
#pragma GCC system_header
results in this warning:
warning: #pragma system_header ignored outside include file
However, this doesn't:
_Pragma ("GCC system_header")
In fact, this causes GCC to emit a line marker switching the main translation
unit to look like a system header.
-Chris
--
Summary: _Pragma GCC system_header broken
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: preprocessor
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sabre at nondot dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28165