diff options
author | froydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-08-18 16:05:40 +0000 |
---|---|---|
committer | froydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-08-18 16:05:40 +0000 |
commit | d7b0d4e703fe17905d497fd455a85ba2520e774e (patch) | |
tree | 1b236ea0b57d049c968cfe54f950db94f793ef09 /gcc/testsuite/g++.dg/pr45049-2.C | |
parent | dd36d7bcef8d95f7df2aa6826f5159dc6bc41c7f (diff) | |
download | gcc-d7b0d4e703fe17905d497fd455a85ba2520e774e.tar.gz |
gcc/cp/
PR c++/45049
* name-lookup.c (push_overloaded_decl): Change DECL_CHAIN to
TREE_CHAIN.
gcc/testsuite/
PR c++/45049
* g++.dg/pr45049-1.C: New test.
* g++.dg/pr45049-2.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163344 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/pr45049-2.C')
-rw-r--r-- | gcc/testsuite/g++.dg/pr45049-2.C | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/pr45049-2.C b/gcc/testsuite/g++.dg/pr45049-2.C new file mode 100644 index 00000000000..a9518842edb --- /dev/null +++ b/gcc/testsuite/g++.dg/pr45049-2.C @@ -0,0 +1,9 @@ +/* { dg-do compile } */ + +void foo() +{ + void bar(int); + void baz(int); + void baz(void); + void bar(void); +} |