public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/34937]  New: [4.3 regression] ICE with attribute weak
@ 2008-01-23  7:55 reichelt at gcc dot gnu dot org
  2008-01-23  8:22 ` [Bug c++/34937] [4.1/4.2/4.3 " reichelt at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-01-23  7:55 UTC (permalink / raw)
  To: gcc-bugs

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

============================================
template<int> struct A
{
  enum { a, b = a };
  void foo(A<b>) __attribute((weak));
};
============================================

bug.cc:5: internal compiler error: tree check: expected integer_cst, have
const_decl in tree_int_cst_sgn, at tree.c:3340
Please submit a full bug report, [etc.]


-- 
           Summary: [4.3 regression] ICE with attribute weak
           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=34937


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

* [Bug c++/34937] [4.1/4.2/4.3 regression] ICE with attribute weak
  2008-01-23  7:55 [Bug c++/34937] New: [4.3 regression] ICE with attribute weak reichelt at gcc dot gnu dot org
@ 2008-01-23  8:22 ` reichelt at gcc dot gnu dot org
  2008-01-23 10:59 ` rguenth at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-01-23  8:22 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.3 regression] ICE with   |[4.1/4.2/4.3 regression] ICE
                   |attribute weak              |with attribute weak
   Target Milestone|---                         |4.1.3


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


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

* [Bug c++/34937] [4.1/4.2/4.3 regression] ICE with attribute weak
  2008-01-23  7:55 [Bug c++/34937] New: [4.3 regression] ICE with attribute weak reichelt at gcc dot gnu dot org
  2008-01-23  8:22 ` [Bug c++/34937] [4.1/4.2/4.3 " reichelt at gcc dot gnu dot org
@ 2008-01-23 10:59 ` rguenth at gcc dot gnu dot org
  2008-01-23 16:45 ` steven at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-01-23 10:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2008-01-23 10:56 -------
Confirmed.  We mangle the function type and come along the CONST_DECL for b
which refers to the CONST_DECL of a.  Some recursion is missing somewhere
here.

But we should not mangle for this non-instantiated template anyway, which
happens if you remove the attribute.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
      Known to work|                            |3.3.6
           Priority|P3                          |P2
   Last reconfirmed|0000-00-00 00:00:00         |2008-01-23 10:56:18
               date|                            |


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


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

* [Bug c++/34937] [4.1/4.2/4.3 regression] ICE with attribute weak
  2008-01-23  7:55 [Bug c++/34937] New: [4.3 regression] ICE with attribute weak reichelt at gcc dot gnu dot org
  2008-01-23  8:22 ` [Bug c++/34937] [4.1/4.2/4.3 " reichelt at gcc dot gnu dot org
  2008-01-23 10:59 ` rguenth at gcc dot gnu dot org
@ 2008-01-23 16:45 ` steven at gcc dot gnu dot org
  2008-02-13 18:44 ` jason at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: steven at gcc dot gnu dot org @ 2008-01-23 16:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from steven at gcc dot gnu dot org  2008-01-23 16:30 -------
What would be the semantics of "weak" on a template member?  That is, how would
the weak reference be overridden?

What I'm looking for is an example of what GCC did with this declaration when
it was still accepted.

The question behind the question is: Should this be valid code? ;-)


-- 


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


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

* [Bug c++/34937] [4.1/4.2/4.3 regression] ICE with attribute weak
  2008-01-23  7:55 [Bug c++/34937] New: [4.3 regression] ICE with attribute weak reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-01-23 16:45 ` steven at gcc dot gnu dot org
@ 2008-02-13 18:44 ` jason at gcc dot gnu dot org
  2008-02-14 10:49 ` [Bug c++/34937] [4.1/4.2 " jakub at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-02-13 18:44 UTC (permalink / raw)
  To: gcc-bugs



-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jason at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-01-23 10:56:18         |2008-02-13 18:43:56
               date|                            |


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


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

* [Bug c++/34937] [4.1/4.2 regression] ICE with attribute weak
  2008-01-23  7:55 [Bug c++/34937] New: [4.3 regression] ICE with attribute weak reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-02-13 18:44 ` jason at gcc dot gnu dot org
@ 2008-02-14 10:49 ` jakub at gcc dot gnu dot org
  2008-05-02 21:45 ` jason at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-02-14 10:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2008-02-14 10:48 -------
Subject: Bug 34962

Author: jason
Date: Wed Feb 13 21:27:16 2008
New Revision: 132297

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132297
Log:
        PR c++/34962, c++/34937, c++/34939
        * decl2.c (is_late_template_attribute): Always defer attributes
        vector_size and weak.

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


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.1/4.2/4.3 regression] ICE|[4.1/4.2 regression] ICE
                   |with attribute weak         |with attribute weak


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


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

* [Bug c++/34937] [4.1/4.2 regression] ICE with attribute weak
  2008-01-23  7:55 [Bug c++/34937] New: [4.3 regression] ICE with attribute weak reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2008-02-14 10:49 ` [Bug c++/34937] [4.1/4.2 " jakub at gcc dot gnu dot org
@ 2008-05-02 21:45 ` jason at gcc dot gnu dot org
  2008-07-04 22:31 ` [Bug c++/34937] [4.2 " jsm28 at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-05-02 21:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jason at gcc dot gnu dot org  2008-05-02 21:44 -------
*** Bug 34939 has been marked as a duplicate of this bug. ***


-- 


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


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

* [Bug c++/34937] [4.2 regression] ICE with attribute weak
  2008-01-23  7:55 [Bug c++/34937] New: [4.3 regression] ICE with attribute weak reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2008-05-02 21:45 ` jason at gcc dot gnu dot org
@ 2008-07-04 22:31 ` jsm28 at gcc dot gnu dot org
  2008-12-02 17:19 ` jason at gcc dot gnu dot org
  2009-04-29 15:23 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 22:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jsm28 at gcc dot gnu dot org  2008-07-04 22:30 -------
Closing 4.1 branch.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.1/4.2 regression] ICE    |[4.2 regression] ICE with
                   |with attribute weak         |attribute weak
   Target Milestone|4.1.3                       |4.2.5


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


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

* [Bug c++/34937] [4.2 regression] ICE with attribute weak
  2008-01-23  7:55 [Bug c++/34937] New: [4.3 regression] ICE with attribute weak reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2008-07-04 22:31 ` [Bug c++/34937] [4.2 " jsm28 at gcc dot gnu dot org
@ 2008-12-02 17:19 ` jason at gcc dot gnu dot org
  2009-04-29 15:23 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-12-02 17:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jason at gcc dot gnu dot org  2008-12-02 17:08 -------
Fixed in 4.3.


-- 

jason at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/34937] [4.2 regression] ICE with attribute weak
  2008-01-23  7:55 [Bug c++/34937] New: [4.3 regression] ICE with attribute weak reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2008-12-02 17:19 ` jason at gcc dot gnu dot org
@ 2009-04-29 15:23 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-04-29 15:23 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.2.5                       |4.3.0


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


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

end of thread, other threads:[~2009-04-29 15:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-23  7:55 [Bug c++/34937] New: [4.3 regression] ICE with attribute weak reichelt at gcc dot gnu dot org
2008-01-23  8:22 ` [Bug c++/34937] [4.1/4.2/4.3 " reichelt at gcc dot gnu dot org
2008-01-23 10:59 ` rguenth at gcc dot gnu dot org
2008-01-23 16:45 ` steven at gcc dot gnu dot org
2008-02-13 18:44 ` jason at gcc dot gnu dot org
2008-02-14 10:49 ` [Bug c++/34937] [4.1/4.2 " jakub at gcc dot gnu dot org
2008-05-02 21:45 ` jason at gcc dot gnu dot org
2008-07-04 22:31 ` [Bug c++/34937] [4.2 " jsm28 at gcc dot gnu dot org
2008-12-02 17:19 ` jason at gcc dot gnu dot org
2009-04-29 15:23 ` pinskia 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).