[Bug c++/30766] Template functions now use declaration scope instead of call scope
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Feb 11 20:07:00 GMT 2007
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-02-11 20:07 -------
And this is the correct behavior as described by the C++ standard.
I have to find the specific section but basically the overloaded set for
depedent functions happen like the following:
1) find all functions declared already during definition time (and not
instantiation time)
2) Later during instantiation look at the inner most namespace of the arguments
for the overloaded function
Since fundumental types don't have an associated namespace to it, Part 2 does
not apply.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30766
More information about the Gcc-bugs
mailing list