Red Hat Bugzilla – Bug 70947
g++ fails when directory in include path has the name of a standard header
Last modified: 2007-04-18 12:45:17 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529
Description of problem:
When there is a directory in the include path whose name is the same of a
standard header, and a program tries to include the standard header, g++ will
fail to compile the program.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a directory called memory.
2. Compile the file below.
Actual Results: [wtcorrea@neon17 wtcorrea]$ g++ -I. -c x.cpp
x.cpp:1:18: memory is a directory
Expected Results: g++ should ignore the memory directory, and look for a file
called memory in the include path.
An errata has been issued which should help the problem described in this bug report.
This report is therefore being closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, please follow the link below. You may reopen
this bug report if the solution does not work for you.