c++/2258: using namespace std fails for endl in templated function
Phil Edwards
pedwards@disaster.jaj.com
Sun Apr 1 00:00:00 GMT 2001
The following reply was made to PR c++/2258; it has been noted by GNATS.
From: Phil Edwards <pedwards@disaster.jaj.com>
To: furboo@cybermesa.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c++/2258: using namespace std fails for endl in templated function
Date: Mon, 12 Mar 2001 13:04:55 -0500
I can reproduce this using today's mainline sources. The forward declaration
of your template function is unneeded here, by the way.
Interesting that the dump of the translation unit contains this entry for
namespace std:
@92 namespace_decl name: @117 srcp: <internal>:0
C dcls: @118
I wonder why a namespace_decl is showing up as DECL_LANG_SPECIFIC, but
not as lang_cplusplus, but rather as C. That strikes me as just weird.
Phil
--
pedwards at disaster dot jaj dot com | pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools. Fools are protected by more capable fools.
More information about the Gcc-prs
mailing list