Bug 70947 - g++ fails when directory in include path has the name of a standard header
Summary: g++ fails when directory in include path has the name of a standard header
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: gcc
Version: 7.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-08-07 07:49 UTC by Wagner T. Correa
Modified: 2007-04-18 16:45 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-11-11 19:21:52 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2002:200 0 high SHIPPED_LIVE Updated version of GCC 2.96-RH now available 2002-09-12 04:00:00 UTC

Description Wagner T. Correa 2002-08-07 07:49:11 UTC
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):


How reproducible:
Always

Steps to Reproduce:
1. Create a directory called memory.
2. Compile the file below.

#include <memory>


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.


Additional info:

gcc-2.96-108.7.2

Comment 1 Jakub Jelinek 2002-11-11 19:21:52 UTC
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.

http://rhn.redhat.com/errata/RHBA-2002-200.html



Note You need to log in before you can comment on or make changes to this bug.