public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/44641]  New: Generated constructors and destructors get wrong debug location when a typedef uses a forward declaration of the type before the definition
@ 2010-06-22 22:55 jyasskin at gmail dot com
  2010-07-15  0:35 ` [Bug c++/44641] " jyasskin at gmail dot com
                   ` (18 more replies)
  0 siblings, 19 replies; 30+ messages in thread
From: jyasskin at gmail dot com @ 2010-06-22 22:55 UTC (permalink / raw)
  To: gcc-bugs

$ cat test.ii
# 1 "bad.h" 1
template <class A> struct MisplacedDbg;
# 1 "good.cc"
struct Arg;
typedef MisplacedDbg<Arg> Typedef;
template<typename T> struct Base  {
  virtual ~Base() {
  }
};
template <class A> struct MisplacedDbg : public Base<int> {
};
static MisplacedDbg<Arg> static_var;
$ g++-4.6svn -c -g test.ii
$ objdump -d -l test.o|grep -B2 'bad.h:1'
0000000000000000 <_ZN12MisplacedDbgI3ArgEC1Ev>:
MisplacedDbg():
/home/jyasskin/tmp/bad.h:1
--
0000000000000000 <_ZN12MisplacedDbgI3ArgED1Ev>:
~MisplacedDbg():
/home/jyasskin/tmp/bad.h:1
$

This causes problems for Gold's ODR violation detector.


-- 
           Summary: Generated constructors and destructors get wrong debug
                    location when a typedef uses a forward declaration of
                    the type before the definition
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jyasskin at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44641


^ permalink raw reply	[flat|nested] 30+ messages in thread
[parent not found: <bug-44641-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2013-11-08 10:56 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-22 22:55 [Bug c++/44641] New: Generated constructors and destructors get wrong debug location when a typedef uses a forward declaration of the type before the definition jyasskin at gmail dot com
2010-07-15  0:35 ` [Bug c++/44641] " jyasskin at gmail dot com
2010-07-20  0:43 ` jyasskin at gmail dot com
2010-07-20 20:17 ` jyasskin at gcc dot gnu dot org
2010-07-20 20:22 ` jyasskin at gcc dot gnu dot org
2010-07-21 13:30 ` hjl dot tools at gmail dot com
2010-07-21 16:44 ` jyasskin at gcc dot gnu dot org
2010-07-21 16:50 ` hjl dot tools at gmail dot com
2010-07-21 18:42 ` jyasskin at gcc dot gnu dot org
2010-07-21 18:47 ` jyasskin at gcc dot gnu dot org
2010-07-21 18:48 ` jyasskin at gcc dot gnu dot org
2010-07-21 19:41 ` manu at gcc dot gnu dot org
2010-07-27  9:05 ` ubizjak at gmail dot com
2010-07-28  6:24 ` ubizjak at gmail dot com
2010-08-04 14:04 ` ubizjak at gmail dot com
2010-08-04 14:20 ` uros at gcc dot gnu dot org
2010-08-04 14:28 ` ubizjak at gmail dot com
2010-08-09  0:19 ` danglin at gcc dot gnu dot org
2010-08-09  0:35 ` dave at hiauly1 dot hia dot nrc dot ca
2010-08-10 22:14 ` danglin at gcc dot gnu dot org
     [not found] <bug-44641-4@http.gcc.gnu.org/bugzilla/>
2010-12-09 14:43 ` danglin at gcc dot gnu.org
2010-12-09 14:52 ` danglin at gcc dot gnu.org
2011-01-21 12:36 ` ro at gcc dot gnu.org
2011-01-21 12:38 ` ro at gcc dot gnu.org
2011-03-25 20:01 ` jakub at gcc dot gnu.org
2011-04-28 16:34 ` rguenth at gcc dot gnu.org
2011-12-08 20:03 ` pinskia at gcc dot gnu.org
2011-12-08 20:18 ` pinskia at gcc dot gnu.org
2011-12-08 20:37 ` pinskia at gcc dot gnu.org
2013-11-08 10:56 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).