This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/35000] New: #include sometimes fails in namespaces
- From: "mw268 at bath dot ac dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jan 2008 18:14:12 -0000
- Subject: [Bug c++/35000] New: #include sometimes fails in namespaces
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
When including a system header in a namespace followed by another system header
seems to prevent declarations being recognized in the headers or some such.
Even happens when the headers are both the same.
Example code:
#ifndef APP_H
#define APP_H
namespace win
{
#include <string>
}
#include <iostream>
#endif
--
Summary: #include sometimes fails in namespaces
Product: gcc
Version: 3.4.5
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mw268 at bath dot ac dot uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35000