This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48396] New: Undeclared library types accepted in namespace std
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 31 Mar 2011 22:14:28 +0000
- Subject: [Bug c++/48396] New: Undeclared library types accepted in namespace std
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48396
Summary: Undeclared library types accepted in namespace std
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: paolo.carlini@oracle.com
This sort of code - note, no includes - is wrongly accepted:
namespace std
{
type_info* fun1();
void fun2(type_info);
}