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

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

============================================
template<int> void foo();

template<typename> struct A
{
  friend void foo<0>() __attribute((weak));
};
============================================

bug.cc:6: internal compiler error: tree check: expected tree that contains
'decl non-common' structure, have 'overload' in decl_is_template_id, at
cp/mangle.c:325
Please submit a full bug report, [etc.]


-- 
           Summary: [4.1/4.2/4.3 regression] ICE with friend and 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=34939


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

* [Bug c++/34939] [4.1/4.2/4.3 regression] ICE with friend and attribute weak
  2008-01-23  8:23 [Bug c++/34939] New: [4.1/4.2/4.3 regression] ICE with friend and attribute weak reichelt at gcc dot gnu dot org
@ 2008-01-23  8:34 ` reichelt at gcc dot gnu dot org
  2008-01-23 11:08 ` rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-01-23  8:34 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.3


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


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

* [Bug c++/34939] [4.1/4.2/4.3 regression] ICE with friend and attribute weak
  2008-01-23  8:23 [Bug c++/34939] New: [4.1/4.2/4.3 regression] ICE with friend and attribute weak reichelt at gcc dot gnu dot org
  2008-01-23  8:34 ` [Bug c++/34939] " reichelt at gcc dot gnu dot org
@ 2008-01-23 11:08 ` rguenth at gcc dot gnu dot org
  2008-02-13 19:32 ` jason at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-01-23 11:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2008-01-23 10:58 -------
Confirmed.  Related to PR34937.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |34937
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Priority|P3                          |P2
   Last reconfirmed|0000-00-00 00:00:00         |2008-01-23 10:58:52
               date|                            |


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


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

* [Bug c++/34939] [4.1/4.2/4.3 regression] ICE with friend and attribute weak
  2008-01-23  8:23 [Bug c++/34939] New: [4.1/4.2/4.3 regression] ICE with friend and attribute weak reichelt at gcc dot gnu dot org
  2008-01-23  8:34 ` [Bug c++/34939] " reichelt at gcc dot gnu dot org
  2008-01-23 11:08 ` rguenth at gcc dot gnu dot org
@ 2008-02-13 19:32 ` jason at gcc dot gnu dot org
  2008-02-14 10:49 ` [Bug c++/34939] [4.1/4.2 " jakub at gcc dot gnu dot org
  2008-05-02 21:45 ` jason at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-02-13 19:32 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:58:52         |2008-02-13 19:31:48
               date|                            |


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


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

* [Bug c++/34939] [4.1/4.2 regression] ICE with friend and attribute weak
  2008-01-23  8:23 [Bug c++/34939] New: [4.1/4.2/4.3 regression] ICE with friend and attribute weak reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-02-13 19:32 ` 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
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-02-14 10:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jakub at gcc dot gnu dot org  2008-02-14 10:49 -------
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 friend and attribute   |with friend and attribute
                   |weak                        |weak


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


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

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



------- Comment #3 from jason at gcc dot gnu dot org  2008-05-02 21:44 -------


*** This bug has been marked as a duplicate of 34937 ***


-- 

jason at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2008-05-02 21:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-23  8:23 [Bug c++/34939] New: [4.1/4.2/4.3 regression] ICE with friend and attribute weak reichelt at gcc dot gnu dot org
2008-01-23  8:34 ` [Bug c++/34939] " reichelt at gcc dot gnu dot org
2008-01-23 11:08 ` rguenth at gcc dot gnu dot org
2008-02-13 19:32 ` jason at gcc dot gnu dot org
2008-02-14 10:49 ` [Bug c++/34939] [4.1/4.2 " jakub at gcc dot gnu dot org
2008-05-02 21:45 ` jason 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).