]> gcc.gnu.org Git - gcc.git/commit
c++: Fix useless using-declaration.
authorJason Merrill <jason@redhat.com>
Thu, 13 Feb 2020 15:56:08 +0000 (16:56 +0100)
committerJason Merrill <jason@redhat.com>
Thu, 13 Feb 2020 21:32:13 +0000 (22:32 +0100)
commit9a0c4f5b373e236cb4af5491f50862d41fd8775a
tree2c478d716b305677a9f09433da422b1b672c01d5
parentabc79c6498a99e9c39e6056f432796c6dde3a887
c++: Fix useless using-declaration.

Here reintroducing the same declarations into the global namespace via
using-declaration is useless but OK.  And a function and a function template
with the same parameters do not conflict.

gcc/cp/ChangeLog
2020-02-13  Jason Merrill  <jason@redhat.com>

PR c++/93713
* name-lookup.c (matching_fn_p): A function does not match a
template.
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/testsuite/g++.dg/lookup/using62.C [new file with mode: 0644]
This page took 0.059407 seconds and 5 git commands to generate.