re PR c++/44641 (Generated constructors and destructors get wrong debug location...
authorJeffrey Yasskin <jyasskin@google.com>
Tue, 20 Jul 2010 20:16:53 +0000 (20:16 +0000)
committerJeffrey Yasskin <jyasskin@gcc.gnu.org>
Tue, 20 Jul 2010 20:16:53 +0000 (20:16 +0000)
commit0603fe683c89ccf3c1663817c44f0d320a57ba5e
treed182d7caab0a17dadf100fabc2f21a970aaac53e
parent1b47fe3fe5a6ddc89896e73a8ec831750bcf69b0
re PR c++/44641 (Generated constructors and destructors get wrong debug location when a typedef uses a forward declaration of the type before the definition)

PR c++/44641
        * gcc/cp/pt.c (instantiate_class_template): Propagate the
        template's location to its instance.

        * gcc/testsuite/lib/scanasm.exp (dg-function-on-line): Test
        that a function is defined on the current line.
        * gcc/testsuite/g++.dg/debug/dwarf2/lineno-simple1.C: New.
        Line number sanity test.
        * gcc/testsuite/g++.dg/debug/dwarf2/pr44641.C: New.

From-SVN: r162349
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/dwarf2/lineno-simple1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/debug/dwarf2/pr44641.C [new file with mode: 0644]
gcc/testsuite/lib/scanasm.exp