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

Reply via email to