This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/9923: Include file behaves differently


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]