[C++ PATCH] Fix extern "C" function and namespace handling

brent verner brent@rcfile.org
Sun Oct 8 18:08:00 GMT 2000


On 08 Oct 2000 at 16:35 (-0700), Kriang Lerdsuwanakij wrote:
| 
| On Sun, 8 Oct 2000, brent verner wrote:
| > 
| > using namespace std  // OK
| 
| Is it just because the trailing ';' is missing from the above line?
| It works for me after the fix.

no, that was just a bad paste, sorry. your compiler doesn't error
on the following line?

| > using std::abs;      // error

the line above results in the following error for me.
n.cc:8: `abs' is already declared in this scope

| > int main() 
| > {
| >   using std::abs; // OK
| >   abs(5); 
| >   return 0; 
| > }

thanks.
  brent

-- 
All opinions expressed are My own, unless otherwise attributed. In
presenting facts, I expressly reserve the right to be Wrong. Portions
of this message authored by Me are subject to the Free Thought License.


More information about the Gcc-patches mailing list