public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/44017] [4.6 regression] ICE with template hierarchy
  2010-05-06 20:36 [Bug c++/44017] New: [4.6 regression] ICE with template hierarchy reichelt at gcc dot gnu dot org
@ 2010-05-06 20:36 ` reichelt at gcc dot gnu dot org
  2010-05-10 13:17 ` baldrick at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2010-05-06 20:36 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.6.0


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


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

* [Bug c++/44017]  New: [4.6 regression] ICE with template hierarchy
@ 2010-05-06 20:36 reichelt at gcc dot gnu dot org
  2010-05-06 20:36 ` [Bug c++/44017] " reichelt at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2010-05-06 20:36 UTC (permalink / raw)
  To: gcc-bugs

The following valid code snippet triggers an ICE on trunk:

=================================
struct A
{
  template<int> void foo();
};

template<int N> struct B : A
{
  B() { foo<N>(); }
};

B<0> b;
=================================

bug.cc: In constructor 'B<N>::B() [with int N = 0]':
bug.cc:11:6:   instantiated from here
bug.cc:8:9: internal compiler error: in build_base_path, at cp/class.c:270
Please submit a full bug report, [etc.]


-- 
           Summary: [4.6 regression] ICE with template hierarchy
           Product: gcc
           Version: 4.6.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=44017


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

* [Bug c++/44017] [4.6 regression] ICE with template hierarchy
  2010-05-06 20:36 [Bug c++/44017] New: [4.6 regression] ICE with template hierarchy reichelt at gcc dot gnu dot org
  2010-05-06 20:36 ` [Bug c++/44017] " reichelt at gcc dot gnu dot org
@ 2010-05-10 13:17 ` baldrick at gcc dot gnu dot org
  2010-05-10 15:32 ` hjl dot tools at gmail dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: baldrick at gcc dot gnu dot org @ 2010-05-10 13:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from baldrick at gcc dot gnu dot org  2010-05-10 13:17 -------
This bug fires when trying to build LLVM using trunk.


-- 


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


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

* [Bug c++/44017] [4.6 regression] ICE with template hierarchy
  2010-05-06 20:36 [Bug c++/44017] New: [4.6 regression] ICE with template hierarchy reichelt at gcc dot gnu dot org
  2010-05-06 20:36 ` [Bug c++/44017] " reichelt at gcc dot gnu dot org
  2010-05-10 13:17 ` baldrick at gcc dot gnu dot org
@ 2010-05-10 15:32 ` hjl dot tools at gmail dot com
  2010-05-10 18:41 ` jason at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-05-10 15:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from hjl dot tools at gmail dot com  2010-05-10 15:32 -------
It is caused by revision 158806:

http://gcc.gnu.org/ml/gcc-cvs/2010-04/msg00913.html


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at redhat dot com


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


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

* [Bug c++/44017] [4.6 regression] ICE with template hierarchy
  2010-05-06 20:36 [Bug c++/44017] New: [4.6 regression] ICE with template hierarchy reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2010-05-10 15:32 ` hjl dot tools at gmail dot com
@ 2010-05-10 18:41 ` jason at gcc dot gnu dot org
  2010-05-10 21:21 ` jason at gcc dot gnu dot org
  2010-05-11  2:18 ` jason at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-05-10 18:41 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|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-05-10 18:41:08
               date|                            |


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


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

* [Bug c++/44017] [4.6 regression] ICE with template hierarchy
  2010-05-06 20:36 [Bug c++/44017] New: [4.6 regression] ICE with template hierarchy reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2010-05-10 18:41 ` jason at gcc dot gnu dot org
@ 2010-05-10 21:21 ` jason at gcc dot gnu dot org
  2010-05-11  2:18 ` jason at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-05-10 21:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jason at gcc dot gnu dot org  2010-05-10 21:21 -------
Subject: Bug 44017

Author: jason
Date: Mon May 10 21:20:47 2010
New Revision: 159246

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159246
Log:
        PR c++/44017
        * semantics.c (baselink_for_fns): Revert earlier change.

Added:
    trunk/gcc/testsuite/g++.dg/template/inherit5.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/44017] [4.6 regression] ICE with template hierarchy
  2010-05-06 20:36 [Bug c++/44017] New: [4.6 regression] ICE with template hierarchy reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2010-05-10 21:21 ` jason at gcc dot gnu dot org
@ 2010-05-11  2:18 ` jason at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-05-11  2:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jason at gcc dot gnu dot org  2010-05-11 02:18 -------
Fixed.


-- 

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=44017


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

end of thread, other threads:[~2010-05-11  2:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-06 20:36 [Bug c++/44017] New: [4.6 regression] ICE with template hierarchy reichelt at gcc dot gnu dot org
2010-05-06 20:36 ` [Bug c++/44017] " reichelt at gcc dot gnu dot org
2010-05-10 13:17 ` baldrick at gcc dot gnu dot org
2010-05-10 15:32 ` hjl dot tools at gmail dot com
2010-05-10 18:41 ` jason at gcc dot gnu dot org
2010-05-10 21:21 ` jason at gcc dot gnu dot org
2010-05-11  2:18 ` 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).