c++/9923: Include file behaves differently
sletter@slb.com
sletter@slb.com
Mon Mar 3 17:56:00 GMT 2003
>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@slb.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:
More information about the Gcc-bugs
mailing list