public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/46565] New: [4.5/4.6 Regression] ICE: SIGSEGV in pop_tinst_level (pt.c:7513) with -gstabs -g on invalid code
@ 2010-11-19 16:20 zsojka at seznam dot cz
  2010-11-19 16:46 ` [Bug c++/46565] " zsojka at seznam dot cz
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: zsojka at seznam dot cz @ 2010-11-19 16:20 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.5/4.6 Regression] ICE: SIGSEGV in pop_tinst_level
                    (pt.c:7513) with -gstabs -g on invalid code
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz


------- testcase.C --------
template < int N > struct X {
  static const int value = X < N - 1 >::value;
};
template struct X <1000>;
---------------------------
(g++.dg/template/recurse2.C)

Compiler output:
$ gcc -gstabs -g testcase.C
testcase.C:1:27: error: template instantiation depth exceeds maximum of 1024
(use -ftemplate-depth= to increase the maximum) instantiating
'X<-0x00000000000000017>::value'
testcase.C:2:41:   recursively instantiated from 'const int X<999>::value'
testcase.C:2:41:   instantiated from 'const int X<1000>::value'
testcase.C:4:17:   instantiated from here

testcase.C:2:41: error: template instantiation depth exceeds maximum of 1024
(use -ftemplate-depth= to increase the maximum) instantiating 'struct
X<-0x00000000000000019>'
testcase.C:2:41:   recursively instantiated from 'const int X<999>::value'
testcase.C:2:41:   instantiated from 'const int X<1000>::value'
testcase.C:4:17:   instantiated from here

testcase.C:2:41: error: incomplete type 'X<-0x00000000000000019>' used in
nested name specifier
==3448== Invalid read of size 4
==3448==    at 0x518875: pop_tinst_level (pt.c:7513)
==3448==    by 0x54EAF2: instantiate_decl (pt.c:17402)
==3448==    by 0x550681: do_type_instantiation (pt.c:16682)
==3448==    by 0x5BAB68: cp_parser_explicit_instantiation (parser.c:12269)
==3448==    by 0x5BDD89: cp_parser_declaration (parser.c:9415)
==3448==    by 0x5BC569: cp_parser_declaration_seq_opt (parser.c:9328)
==3448==    by 0x5BE234: c_parse_file (parser.c:3445)
==3448==    by 0x6922F4: c_common_parse_file (c-opts.c:1070)
==3448==    by 0x9F7423: toplev_main (toplev.c:870)
==3448==    by 0x6376BBC: (below main) (in /lib64/libc-2.11.2.so)
==3448==  Address 0x10 is not stack'd, malloc'd or (recently) free'd
==3448== 
testcase.C:4:17: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


Tested revisions:
r166936 - crash
4.5 r166509 - crash
4.4 r166509 - OK


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

* [Bug c++/46565] [4.5/4.6 Regression] ICE: SIGSEGV in pop_tinst_level (pt.c:7513) with -gstabs -g on invalid code
  2010-11-19 16:20 [Bug c++/46565] New: [4.5/4.6 Regression] ICE: SIGSEGV in pop_tinst_level (pt.c:7513) with -gstabs -g on invalid code zsojka at seznam dot cz
@ 2010-11-19 16:46 ` zsojka at seznam dot cz
  2010-11-19 20:04 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: zsojka at seznam dot cz @ 2010-11-19 16:46 UTC (permalink / raw)
  To: gcc-bugs

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

Zdenek Sojka <zsojka at seznam dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
      Known to work|                            |4.4.6
      Known to fail|                            |4.5.2, 4.6.0
           Severity|normal                      |minor


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

* [Bug c++/46565] [4.5/4.6 Regression] ICE: SIGSEGV in pop_tinst_level (pt.c:7513) with -gstabs -g on invalid code
  2010-11-19 16:20 [Bug c++/46565] New: [4.5/4.6 Regression] ICE: SIGSEGV in pop_tinst_level (pt.c:7513) with -gstabs -g on invalid code zsojka at seznam dot cz
  2010-11-19 16:46 ` [Bug c++/46565] " zsojka at seznam dot cz
@ 2010-11-19 20:04 ` jakub at gcc dot gnu.org
  2010-12-16 13:07 ` rguenth at gcc dot gnu.org
  2011-03-11 21:46 ` jason at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-11-19 20:04 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |error-recovery
           Priority|P3                          |P4
                 CC|                            |jakub at gcc dot gnu.org
   Target Milestone|---                         |4.5.2


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

* [Bug c++/46565] [4.5/4.6 Regression] ICE: SIGSEGV in pop_tinst_level (pt.c:7513) with -gstabs -g on invalid code
  2010-11-19 16:20 [Bug c++/46565] New: [4.5/4.6 Regression] ICE: SIGSEGV in pop_tinst_level (pt.c:7513) with -gstabs -g on invalid code zsojka at seznam dot cz
  2010-11-19 16:46 ` [Bug c++/46565] " zsojka at seznam dot cz
  2010-11-19 20:04 ` jakub at gcc dot gnu.org
@ 2010-12-16 13:07 ` rguenth at gcc dot gnu.org
  2011-03-11 21:46 ` jason at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-12-16 13:07 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.5.2                       |4.5.3

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-12-16 13:03:03 UTC ---
GCC 4.5.2 is being released, adjusting target milestone.


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

* [Bug c++/46565] [4.5/4.6 Regression] ICE: SIGSEGV in pop_tinst_level (pt.c:7513) with -gstabs -g on invalid code
  2010-11-19 16:20 [Bug c++/46565] New: [4.5/4.6 Regression] ICE: SIGSEGV in pop_tinst_level (pt.c:7513) with -gstabs -g on invalid code zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2010-12-16 13:07 ` rguenth at gcc dot gnu.org
@ 2011-03-11 21:46 ` jason at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-11 21:46 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |jason at gcc dot gnu.org
         Resolution|                            |WORKSFORME

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-11 21:46:03 UTC ---
I can't reproduce this on head of 4.5 or 4.6.


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

end of thread, other threads:[~2011-03-11 21:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-19 16:20 [Bug c++/46565] New: [4.5/4.6 Regression] ICE: SIGSEGV in pop_tinst_level (pt.c:7513) with -gstabs -g on invalid code zsojka at seznam dot cz
2010-11-19 16:46 ` [Bug c++/46565] " zsojka at seznam dot cz
2010-11-19 20:04 ` jakub at gcc dot gnu.org
2010-12-16 13:07 ` rguenth at gcc dot gnu.org
2011-03-11 21:46 ` jason at gcc dot gnu.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).