public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35098]  New: [4.1/4.24.3 regression] ICE with attribute unused in template
@ 2008-02-06  7:43 reichelt at gcc dot gnu dot org
  2008-02-06  7:43 ` [Bug c++/35098] [4.1/4.2/4.3 " reichelt at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-02-06  7:43 UTC (permalink / raw)
  To: gcc-bugs

The following valid code snippet triggers an ICE since GCC 3.4.0:

===========================================================
template<typename T> struct A
{
  T a, __attribute((unused)) b;
};
===========================================================

bug.cc:3: internal compiler error: in layout_type, at stor-layout.c:1864
Please submit a full bug report, [etc.]

Without the variable 'a' I get a warning (which is missing in the case above):
bug.cc:3: warning: 'unused' attribute ignored


-- 
           Summary: [4.1/4.24.3 regression] ICE with attribute unused in
                    template
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

* [Bug c++/35098] [4.1/4.2/4.3 regression] ICE with attribute unused in template
  2008-02-06  7:43 [Bug c++/35098] New: [4.1/4.24.3 regression] ICE with attribute unused in template reichelt at gcc dot gnu dot org
@ 2008-02-06  7:43 ` reichelt at gcc dot gnu dot org
  2008-02-06 12:26 ` rguenth at gcc dot gnu dot org
  2008-03-14 17:09 ` [Bug c++/35098] " rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-02-06  7:43 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.1/4.24.3 regression] ICE |[4.1/4.2/4.3 regression] ICE
                   |with attribute unused in    |with attribute unused in
                   |template                    |template
   Target Milestone|---                         |4.3.0


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


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

* [Bug c++/35098] [4.1/4.2/4.3 regression] ICE with attribute unused in template
  2008-02-06  7:43 [Bug c++/35098] New: [4.1/4.24.3 regression] ICE with attribute unused in template reichelt at gcc dot gnu dot org
  2008-02-06  7:43 ` [Bug c++/35098] [4.1/4.2/4.3 " reichelt at gcc dot gnu dot org
@ 2008-02-06 12:26 ` rguenth at gcc dot gnu dot org
  2008-03-14 17:09 ` [Bug c++/35098] " rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-02-06 12:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2008-02-06 12:25 -------
GCC 3.3 rejected this code with

t.C:3: error: syntax error before `__attribute'

so there's no 'working' version.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Priority|P3                          |P2
   Last reconfirmed|0000-00-00 00:00:00         |2008-02-06 12:25:16
               date|                            |


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


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

* [Bug c++/35098] ICE with attribute unused in template
  2008-02-06  7:43 [Bug c++/35098] New: [4.1/4.24.3 regression] ICE with attribute unused in template reichelt at gcc dot gnu dot org
  2008-02-06  7:43 ` [Bug c++/35098] [4.1/4.2/4.3 " reichelt at gcc dot gnu dot org
  2008-02-06 12:26 ` rguenth at gcc dot gnu dot org
@ 2008-03-14 17:09 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-03-14 17:09 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.1/4.2/4.3/4.4 regression]|ICE with attribute unused in
                   |ICE with attribute unused in|template
                   |template                    |
   Target Milestone|4.3.0                       |---


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


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

* [Bug c++/35098] ICE with attribute unused in template
       [not found] <bug-35098-4@http.gcc.gnu.org/bugzilla/>
  2020-07-23 17:20 ` mpolacek at gcc dot gnu.org
  2020-09-17 20:15 ` cvs-commit at gcc dot gnu.org
@ 2020-09-17 20:17 ` mpolacek at gcc dot gnu.org
  2 siblings, 0 replies; 7+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-09-17 20:17 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35098

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

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

--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed.

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

* [Bug c++/35098] ICE with attribute unused in template
       [not found] <bug-35098-4@http.gcc.gnu.org/bugzilla/>
  2020-07-23 17:20 ` mpolacek at gcc dot gnu.org
@ 2020-09-17 20:15 ` cvs-commit at gcc dot gnu.org
  2020-09-17 20:17 ` mpolacek at gcc dot gnu.org
  2 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-09-17 20:15 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35098

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Marek Polacek <mpolacek@gcc.gnu.org>:

https://gcc.gnu.org/g:4f0aa5b051c0d3e81478bcb495e4e072b2d9827d

commit r11-3268-g4f0aa5b051c0d3e81478bcb495e4e072b2d9827d
Author: Marek Polacek <polacek@redhat.com>
Date:   Thu Sep 17 15:31:50 2020 -0400

    c++: Add tests for fixed PRs.

    Bugzilla inspection turned up a bunch of old(er) PRs that have been
    fixed.  Let's include them not to regress in the future.

    gcc/testsuite/ChangeLog:

            PR c++/87530
            PR c++/58156
            PR c++/68828
            PR c++/86002
            PR c++/91525
            PR c++/96223
            PR c++/87032
            PR c++/35098
            * g++.dg/cpp0x/move-return4.C: New test.
            * g++.dg/cpp0x/vt-58156.C: New test.
            * g++.dg/cpp2a/concepts-pr68828.C: New test.
            * g++.dg/cpp2a/concepts-pr86002.C: New test.
            * g++.dg/cpp2a/concepts-pr91525.C: New test.
            * g++.dg/cpp2a/constexpr-indeterminate1.C: New test.
            * g++.dg/cpp2a/desig17.C: New test.
            * g++.dg/ext/attrib62.C: New test.

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

* [Bug c++/35098] ICE with attribute unused in template
       [not found] <bug-35098-4@http.gcc.gnu.org/bugzilla/>
@ 2020-07-23 17:20 ` mpolacek at gcc dot gnu.org
  2020-09-17 20:15 ` cvs-commit at gcc dot gnu.org
  2020-09-17 20:17 ` mpolacek at gcc dot gnu.org
  2 siblings, 0 replies; 7+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-07-23 17:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35098

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |mpolacek at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |mpolacek at gcc dot gnu.org

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
This got fixed by r10-7998.

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

end of thread, other threads:[~2020-09-17 20:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-06  7:43 [Bug c++/35098] New: [4.1/4.24.3 regression] ICE with attribute unused in template reichelt at gcc dot gnu dot org
2008-02-06  7:43 ` [Bug c++/35098] [4.1/4.2/4.3 " reichelt at gcc dot gnu dot org
2008-02-06 12:26 ` rguenth at gcc dot gnu dot org
2008-03-14 17:09 ` [Bug c++/35098] " rguenth at gcc dot gnu dot org
     [not found] <bug-35098-4@http.gcc.gnu.org/bugzilla/>
2020-07-23 17:20 ` mpolacek at gcc dot gnu.org
2020-09-17 20:15 ` cvs-commit at gcc dot gnu.org
2020-09-17 20:17 ` mpolacek 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).