This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/9923: Include file behaves differently
- From: sletter at slb dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 3 Mar 2003 17:47:12 -0000
- Subject: c++/9923: Include file behaves differently
- Reply-to: sletter at slb dot com
>Number: 9923
>Category: c++
>Synopsis: Include file behaves differently
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Mar 03 17:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: sletter at slb dot com
>Release: 3.0.2
>Organization:
>Environment:
Red Hat Linux 7.2.
>Description:
#include "/usr/include/unistd.h"
extern "C" int access(const char *, int);
Compiling above causes an error (g++ -c foo.c)
while
#include <unistd.h>
extern "C" int access(const char *, int);
does not. For some reason the C++ front end treats quoted includes differently than bracketed ones.
>How-To-Repeat:
compile the above code snippets and the error should present itself.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: