diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-11-13 07:34:50 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-11-13 07:34:50 +0000 |
commit | dcfa82ba5a59dd18b29c4988df7c18f3fa3c3677 (patch) | |
tree | b01d7315da05ef072506a584a05cf979f616f66f /gcc/testsuite/g++.dg/debug/using2.C | |
parent | 69d2f735b7434e476546a7c8e1afa7dc5256096e (diff) | |
download | gcc-dcfa82ba5a59dd18b29c4988df7c18f3fa3c3677.tar.gz |
PR c++/22489
* dwarf2out.c (gen_subprogram_die): Force a declaration die for
lazily declared methods.
(force_decl_die): Stop if forcing out the context already make a
DIE for the decl.
(force_type_die): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@106853 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/debug/using2.C')
-rw-r--r-- | gcc/testsuite/g++.dg/debug/using2.C | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/debug/using2.C b/gcc/testsuite/g++.dg/debug/using2.C new file mode 100644 index 00000000000..94f0deae78c --- /dev/null +++ b/gcc/testsuite/g++.dg/debug/using2.C @@ -0,0 +1,21 @@ +// PR c++/22489 + +namespace N { } + +struct T +{ + T () { } +}; + +void +bar () +{ + struct U : public T + { + void baz () + { + using namespace N; + } + } u; + u.baz(); +} |