]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/14510 (Lookup error between function name and struct name)
authorMark Mitchell <mark@codesourcery.com>
Thu, 11 Mar 2004 04:25:38 +0000 (04:25 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 11 Mar 2004 04:25:38 +0000 (04:25 +0000)
commite46e9f822e035f84349a34ae4dce020c98c30da5
tree2c249462a7b41eac1808184c0257c44f19da0edf
parent4d0c31e68cc2a1c3d39c7d51d2af9cd3d5c1784f
re PR c++/14510 (Lookup error between function name and struct name)

PR c++/14510
* decl.c (xref_tag): Disregard non-type declarations when
looking up a tagged type.

PR c++/14510
* g++.dg/lookup/struct2.C: New test.

From-SVN: r79298
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/struct2.C [new file with mode: 0644]