public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52906] New: [4.7/4.8 Regression] ICE: SIGSEGV in check_tag_decl (decl.c:4230) with "__attribute__ ((__deprecated__));" alone
@ 2012-04-08 18:57 zsojka at seznam dot cz
  2012-04-10 12:18 ` [Bug c++/52906] " rguenth at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: zsojka at seznam dot cz @ 2012-04-08 18:57 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52906
           Summary: [4.7/4.8 Regression] ICE: SIGSEGV in check_tag_decl
                    (decl.c:4230) with "__attribute__ ((__deprecated__));"
                    alone
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz


===== testcase.C =====
__attribute__ ((__deprecated__));
======================

Compiler output:
$ gcc testcase.C
testcase.C:1:32: error: declaration does not declare anything [-fpermissive]
==17107== Invalid read of size 2
==17107==    at 0x5B73C5: check_tag_decl(cp_decl_specifier_seq*) (decl.c:4230)
==17107==    by 0x5D7C3D: shadow_tag(cp_decl_specifier_seq*) (decl.c:4263)
==17107==    by 0x69DE3C: cp_parser_simple_declaration(cp_parser*, bool,
tree_node**) (parser.c:10493)
==17107==    by 0x6A40B7: cp_parser_block_declaration(cp_parser*, bool)
(parser.c:10304)
==17107==    by 0x6A932B: cp_parser_declaration(cp_parser*) (parser.c:10200)
==17107==    by 0x6A7F37: cp_parser_declaration_seq_opt(cp_parser*)
(parser.c:10086)
==17107==    by 0x6A98A2: c_parse_file() (parser.c:3797)
==17107==    by 0x7A8664: c_common_parse_file() (c-opts.c:1124)
==17107==    by 0xB8AB0F: toplev_main(int, char**) (toplev.c:556)
==17107==    by 0x66E009C: (below main) (in /lib64/libc-2.13.so)
==17107==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17107== 
testcase.C:1:32: 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.

The code is accepted with "-fpermissive" (but still ICEs), so I am not sure if
this should be marked as ICE on valid or invalid.

Tested revisions:
r186200 - crash
4.7 r185191 - crash
4.6 r185191 - OK


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

* [Bug c++/52906] [4.7/4.8 Regression] ICE: SIGSEGV in check_tag_decl (decl.c:4230) with "__attribute__ ((__deprecated__));" alone
  2012-04-08 18:57 [Bug c++/52906] New: [4.7/4.8 Regression] ICE: SIGSEGV in check_tag_decl (decl.c:4230) with "__attribute__ ((__deprecated__));" alone zsojka at seznam dot cz
@ 2012-04-10 12:18 ` rguenth at gcc dot gnu.org
  2012-04-11 14:02 ` jason at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-04-10 12:18 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.7.1


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

* [Bug c++/52906] [4.7/4.8 Regression] ICE: SIGSEGV in check_tag_decl (decl.c:4230) with "__attribute__ ((__deprecated__));" alone
  2012-04-08 18:57 [Bug c++/52906] New: [4.7/4.8 Regression] ICE: SIGSEGV in check_tag_decl (decl.c:4230) with "__attribute__ ((__deprecated__));" alone zsojka at seznam dot cz
  2012-04-10 12:18 ` [Bug c++/52906] " rguenth at gcc dot gnu.org
@ 2012-04-11 14:02 ` jason at gcc dot gnu.org
  2012-04-11 17:55 ` jason at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2012-04-11 14:02 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2012-04-11
                 CC|                            |jason at gcc dot gnu.org
         AssignedTo|unassigned at gcc dot       |jason at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1


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

* [Bug c++/52906] [4.7/4.8 Regression] ICE: SIGSEGV in check_tag_decl (decl.c:4230) with "__attribute__ ((__deprecated__));" alone
  2012-04-08 18:57 [Bug c++/52906] New: [4.7/4.8 Regression] ICE: SIGSEGV in check_tag_decl (decl.c:4230) with "__attribute__ ((__deprecated__));" alone zsojka at seznam dot cz
  2012-04-10 12:18 ` [Bug c++/52906] " rguenth at gcc dot gnu.org
  2012-04-11 14:02 ` jason at gcc dot gnu.org
@ 2012-04-11 17:55 ` jason at gcc dot gnu.org
  2012-04-13 13:17 ` [Bug c++/52906] [4.7 " rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2012-04-11 17:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2012-04-11 17:55:23 UTC ---
Author: jason
Date: Wed Apr 11 17:55:12 2012
New Revision: 186345

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186345
Log:
    PR c++/52906
    * decl.c (check_tag_decl): Don't complain about attributes if we
    don't even have a type.

Added:
    trunk/gcc/testsuite/g++.dg/ext/attrib45.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/52906] [4.7 Regression] ICE: SIGSEGV in check_tag_decl (decl.c:4230) with "__attribute__ ((__deprecated__));" alone
  2012-04-08 18:57 [Bug c++/52906] New: [4.7/4.8 Regression] ICE: SIGSEGV in check_tag_decl (decl.c:4230) with "__attribute__ ((__deprecated__));" alone zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2012-04-11 17:55 ` jason at gcc dot gnu.org
@ 2012-04-13 13:17 ` rguenth at gcc dot gnu.org
  2012-04-13 19:47 ` jason at gcc dot gnu.org
  2012-04-13 19:51 ` jason at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-04-13 13:17 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
      Known to work|                            |4.8.0
            Summary|[4.7/4.8 Regression] ICE:   |[4.7 Regression] ICE:
                   |SIGSEGV in check_tag_decl   |SIGSEGV in check_tag_decl
                   |(decl.c:4230) with          |(decl.c:4230) with
                   |"__attribute__              |"__attribute__
                   |((__deprecated__));" alone  |((__deprecated__));" alone
      Known to fail|4.8.0                       |

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-04-13 13:15:41 UTC ---
Fixed on trunk sofar.


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

* [Bug c++/52906] [4.7 Regression] ICE: SIGSEGV in check_tag_decl (decl.c:4230) with "__attribute__ ((__deprecated__));" alone
  2012-04-08 18:57 [Bug c++/52906] New: [4.7/4.8 Regression] ICE: SIGSEGV in check_tag_decl (decl.c:4230) with "__attribute__ ((__deprecated__));" alone zsojka at seznam dot cz
                   ` (3 preceding siblings ...)
  2012-04-13 13:17 ` [Bug c++/52906] [4.7 " rguenth at gcc dot gnu.org
@ 2012-04-13 19:47 ` jason at gcc dot gnu.org
  2012-04-13 19:51 ` jason at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2012-04-13 19:47 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2012-04-13 19:44:21 UTC ---
Author: jason
Date: Fri Apr 13 19:44:15 2012
New Revision: 186435

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186435
Log:
    PR c++/52906
    * decl.c (check_tag_decl): Don't complain about attributes if we
    don't even have a type.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/g++.dg/ext/attrib45.C
Modified:
    branches/gcc-4_7-branch/gcc/cp/ChangeLog
    branches/gcc-4_7-branch/gcc/cp/decl.c
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog


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

* [Bug c++/52906] [4.7 Regression] ICE: SIGSEGV in check_tag_decl (decl.c:4230) with "__attribute__ ((__deprecated__));" alone
  2012-04-08 18:57 [Bug c++/52906] New: [4.7/4.8 Regression] ICE: SIGSEGV in check_tag_decl (decl.c:4230) with "__attribute__ ((__deprecated__));" alone zsojka at seznam dot cz
                   ` (4 preceding siblings ...)
  2012-04-13 19:47 ` jason at gcc dot gnu.org
@ 2012-04-13 19:51 ` jason at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2012-04-13 19:51 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2012-04-13 19:51:03 UTC ---
Fixed.


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

end of thread, other threads:[~2012-04-13 19:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-08 18:57 [Bug c++/52906] New: [4.7/4.8 Regression] ICE: SIGSEGV in check_tag_decl (decl.c:4230) with "__attribute__ ((__deprecated__));" alone zsojka at seznam dot cz
2012-04-10 12:18 ` [Bug c++/52906] " rguenth at gcc dot gnu.org
2012-04-11 14:02 ` jason at gcc dot gnu.org
2012-04-11 17:55 ` jason at gcc dot gnu.org
2012-04-13 13:17 ` [Bug c++/52906] [4.7 " rguenth at gcc dot gnu.org
2012-04-13 19:47 ` jason at gcc dot gnu.org
2012-04-13 19:51 ` 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).