public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/40705]  New: Using -ggdb flag cause internal
@ 2009-07-09 21:32 phorgan1 at gmail dot com
  2009-07-09 21:45 ` [Bug c++/40705] Using -ggdb flag cause internal error phorgan1 at gmail dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: phorgan1 at gmail dot com @ 2009-07-09 21:32 UTC (permalink / raw)
  To: gcc-bugs

The following code compiles cleanly without the -ggdb flag, i.e. using:

g++ -save-temps testit.cpp -o testit

but adding the -ggdb flag:

g++ -ggdb -save-temps testit.cpp -o testit

results in the following error output:

testit.cpp:10:1: internal compiler error: in gen_type_die_with_usage, at
dwarf2out.c:15108
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Exact code compiled from testit.ii:

# 1 "testit.cpp"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "testit.cpp"
template <unsigned int n> class foo
{
public:
    typedef
 unsigned char type;
};

template<>
class foo<1>
{
    typedef enum {} type;
};

int
main()
{
}


-- 
           Summary: Using -ggdb flag cause internal
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: phorgan1 at gmail dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/40705] Using -ggdb flag cause internal error
  2009-07-09 21:32 [Bug c++/40705] New: Using -ggdb flag cause internal phorgan1 at gmail dot com
@ 2009-07-09 21:45 ` phorgan1 at gmail dot com
  2009-07-10  8:35 ` [Bug debug/40705] [4.5 Regression] ICE in gen_type_die_with_usage, at dwarf2out.c:15117 rguenth at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: phorgan1 at gmail dot com @ 2009-07-09 21:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from phorgan1 at gmail dot com  2009-07-09 21:45 -------
Just noted that -ggdb is not required but merely -g


-- 

phorgan1 at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Using -ggdb flag cause      |Using -ggdb flag cause
                   |internal                    |internal error


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug debug/40705] [4.5 Regression] ICE in gen_type_die_with_usage, at dwarf2out.c:15117
  2009-07-09 21:32 [Bug c++/40705] New: Using -ggdb flag cause internal phorgan1 at gmail dot com
  2009-07-09 21:45 ` [Bug c++/40705] Using -ggdb flag cause internal error phorgan1 at gmail dot com
@ 2009-07-10  8:35 ` rguenth at gcc dot gnu dot org
  2009-07-10 13:45 ` dodji at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-10  8:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2009-07-10 08:35 -------
Confirmed.

(gdb) up
#1  0x084bdc54 in gen_type_die_with_usage (type=0xb7d78ee0, 
    context_die=0xb7fde680, usage=DINFO_USAGE_DIR_USE)
    at /home/richard/src/trunk/gcc/dwarf2out.c:15117
15117         gcc_assert (DECL_ORIGINAL_TYPE (TYPE_NAME (type)) != type);
(gdb) call debug_tree (type)
 <enumeral_type 0xb7d78ee0 type
    type <integer_type 0xb7d78b60 unsigned int public unsigned type_6 SI
        size <integer_cst 0xb7cbe508 constant 32>
        unit size <integer_cst 0xb7cbe2f4 constant 4>
        align 32 symtab 0 alias set -1 canonical type 0xb7ccf380 precision 32
min <integer_cst 0xb7d70d90 0> max <integer_cst 0xb7d70dac 1>
        pointer_to_this <pointer_type 0xb7d6d930>>
    unsigned SI size <integer_cst 0xb7cbe508 32> unit size <integer_cst
0xb7cbe2f4 4>
    align 32 symtab 0 alias set -1 canonical type 0xb7d78ee0 precision 32 min
<integer_cst 0xb7d70850 0> max <integer_cst 0xb7d70dc8 1> context <record_type
0xb7d78d20 foo>
    chain <type_decl 0xb7d78f50 ._0>>


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|c++                         |debug
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-07-10 08:35:45
               date|                            |
            Summary|Using -ggdb flag cause      |[4.5 Regression] ICE in
                   |internal error              |gen_type_die_with_usage, at
                   |                            |dwarf2out.c:15117
   Target Milestone|---                         |4.5.0


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug debug/40705] [4.5 Regression] ICE in gen_type_die_with_usage, at dwarf2out.c:15117
  2009-07-09 21:32 [Bug c++/40705] New: Using -ggdb flag cause internal phorgan1 at gmail dot com
  2009-07-09 21:45 ` [Bug c++/40705] Using -ggdb flag cause internal error phorgan1 at gmail dot com
  2009-07-10  8:35 ` [Bug debug/40705] [4.5 Regression] ICE in gen_type_die_with_usage, at dwarf2out.c:15117 rguenth at gcc dot gnu dot org
@ 2009-07-10 13:45 ` dodji at gcc dot gnu dot org
  2009-07-13 17:41 ` dodji at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-07-10 13:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from dodji at gcc dot gnu dot org  2009-07-10 13:44 -------
I could reproduce on trunk.


-- 

dodji at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |dodji at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2009-07-10 08:35:45         |2009-07-10 13:44:51
               date|                            |


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug debug/40705] [4.5 Regression] ICE in gen_type_die_with_usage, at dwarf2out.c:15117
  2009-07-09 21:32 [Bug c++/40705] New: Using -ggdb flag cause internal phorgan1 at gmail dot com
                   ` (2 preceding siblings ...)
  2009-07-10 13:45 ` dodji at gcc dot gnu dot org
@ 2009-07-13 17:41 ` dodji at gcc dot gnu dot org
  2009-07-14 15:02 ` dodji at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-07-13 17:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from dodji at gcc dot gnu dot org  2009-07-13 17:41 -------
A candidate patch was posted to
http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00743.html.


-- 


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug debug/40705] [4.5 Regression] ICE in gen_type_die_with_usage, at dwarf2out.c:15117
  2009-07-09 21:32 [Bug c++/40705] New: Using -ggdb flag cause internal phorgan1 at gmail dot com
                   ` (3 preceding siblings ...)
  2009-07-13 17:41 ` dodji at gcc dot gnu dot org
@ 2009-07-14 15:02 ` dodji at gcc dot gnu dot org
  2009-07-14 15:19 ` dodji at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-07-14 15:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from dodji at gcc dot gnu dot org  2009-07-14 15:02 -------
Subject: Bug 40705

Author: dodji
Date: Tue Jul 14 15:01:55 2009
New Revision: 149628

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149628
Log:
2009-07-14  Dodji Seketeli  <dodji@redhat.com>

gcc/ChangeLog:
        PR debug/40705
        PR c++/403057
        * dwarf2.out.c (gen_type_die_with_usage): Added comment.

gcc/cp/ChangeLog:
        PR debug/40705
        PR c++/403057
        * decl2.c (grokfield): Don't call set_underlying_type on typedef
        decls that are type names.

gcc/testsuite/ChangeLog:
        PR debug/40705
        PR c++/403057
        * g++.dg/debug/dwarf2/typedef1.C: New test.
        * g++.dg/other/typedef3.C: Likewise.


Added:
    trunk/gcc/testsuite/g++.dg/debug/dwarf2/typedef1.C
    trunk/gcc/testsuite/g++.dg/other/typedef3.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl2.c
    trunk/gcc/dwarf2out.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug debug/40705] [4.5 Regression] ICE in gen_type_die_with_usage, at dwarf2out.c:15117
  2009-07-09 21:32 [Bug c++/40705] New: Using -ggdb flag cause internal phorgan1 at gmail dot com
                   ` (4 preceding siblings ...)
  2009-07-14 15:02 ` dodji at gcc dot gnu dot org
@ 2009-07-14 15:19 ` dodji at gcc dot gnu dot org
  2009-07-14 19:37 ` phorgan1 at gmail dot com
  2009-07-23 17:52 ` hjl at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-07-14 15:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from dodji at gcc dot gnu dot org  2009-07-14 15:19 -------
Fixed in gcc 4.5


-- 

dodji at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug debug/40705] [4.5 Regression] ICE in gen_type_die_with_usage, at dwarf2out.c:15117
  2009-07-09 21:32 [Bug c++/40705] New: Using -ggdb flag cause internal phorgan1 at gmail dot com
                   ` (5 preceding siblings ...)
  2009-07-14 15:19 ` dodji at gcc dot gnu dot org
@ 2009-07-14 19:37 ` phorgan1 at gmail dot com
  2009-07-23 17:52 ` hjl at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: phorgan1 at gmail dot com @ 2009-07-14 19:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from phorgan1 at gmail dot com  2009-07-14 19:37 -------
Verified that original test case now compiles with -g flag--Thanks!


-- 


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug debug/40705] [4.5 Regression] ICE in gen_type_die_with_usage, at dwarf2out.c:15117
  2009-07-09 21:32 [Bug c++/40705] New: Using -ggdb flag cause internal phorgan1 at gmail dot com
                   ` (6 preceding siblings ...)
  2009-07-14 19:37 ` phorgan1 at gmail dot com
@ 2009-07-23 17:52 ` hjl at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: hjl at gcc dot gnu dot org @ 2009-07-23 17:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from hjl at gcc dot gnu dot org  2009-07-23 17:51 -------
Subject: Bug 40705

Author: hjl
Date: Thu Jul 23 17:50:56 2009
New Revision: 150020

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150020
Log:
2009-07-23  H.J. Lu  <hongjiu.lu@intel.com>

        Backport from mainline:
        2009-07-22  Richard Guenther  <rguenther@suse.de>

        PR c++/40799
        * g++.dg/lookup/using21.C: New testcase.

        2009-07-19  Jan Hubicka  <jh@suse.cz>

        PR tree-optimization/40676
        * gcc.c-torture/compile/pr40676.c: New testcase.

        2009-07-15  Richard Guenther  <rguenther@suse.de>

        PR middle-end/40753
        * gcc.c-torture/compile/pr40753.c: New testcase.

        2009-07-14  Dodji Seketeli  <dodji@redhat.com>

        PR debug/40705
        * g++.dg/debug/dwarf2/typedef1.C: New test.

        PR c++/40357
        * g++.dg/other/typedef3.C: New test.

        2009-07-10  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/40496
        * g++.dg/opt/pr40496.C: New testcase.

        2009-07-09  Jakub Jelinek  <jakub@redhat.com>

        PR middle-end/40692
        * gcc.c-torture/compile/pr40692.c: New test.

        2009-07-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR libfortran/40330
        PR libfortran/40662
        * gfortran.dg/fmt_cache_1.f: New test.

Added:
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/debug/dwarf2/typedef1.C
      - copied unchanged from r150018,
trunk/gcc/testsuite/g++.dg/debug/dwarf2/typedef1.C
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/lookup/using21.C
      - copied unchanged from r150018,
trunk/gcc/testsuite/g++.dg/lookup/using21.C
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/opt/pr40496.C
      - copied unchanged from r150018, trunk/gcc/testsuite/g++.dg/opt/pr40496.C
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/other/typedef3.C
      - copied unchanged from r150018,
trunk/gcc/testsuite/g++.dg/other/typedef3.C
    branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr40676.c
      - copied unchanged from r150018,
trunk/gcc/testsuite/gcc.c-torture/compile/pr40676.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr40692.c
      - copied unchanged from r150018,
trunk/gcc/testsuite/gcc.c-torture/compile/pr40692.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr40753.c
      - copied unchanged from r150018,
trunk/gcc/testsuite/gcc.c-torture/compile/pr40753.c
    branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/fmt_cache_1.f
      - copied unchanged from r150018,
trunk/gcc/testsuite/gfortran.dg/fmt_cache_1.f
Modified:
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-07-23 17:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-09 21:32 [Bug c++/40705] New: Using -ggdb flag cause internal phorgan1 at gmail dot com
2009-07-09 21:45 ` [Bug c++/40705] Using -ggdb flag cause internal error phorgan1 at gmail dot com
2009-07-10  8:35 ` [Bug debug/40705] [4.5 Regression] ICE in gen_type_die_with_usage, at dwarf2out.c:15117 rguenth at gcc dot gnu dot org
2009-07-10 13:45 ` dodji at gcc dot gnu dot org
2009-07-13 17:41 ` dodji at gcc dot gnu dot org
2009-07-14 15:02 ` dodji at gcc dot gnu dot org
2009-07-14 15:19 ` dodji at gcc dot gnu dot org
2009-07-14 19:37 ` phorgan1 at gmail dot com
2009-07-23 17:52 ` hjl at gcc dot gnu dot org

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).