This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/10956] ICE in tsubst, at cp/pt.c:6459


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


bangerth@dealii.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Priority|P2                          |P1
   Last reconfirmed|0000-00-00 00:00:00         |2003-05-23 18:57:32
               date|                            |


------- Additional Comments From bangerth@dealii.org  2003-05-23 18:57 -------
Confirmed. The ICE is a regression in 3.2/3.3/3.4, 2.95 simply got us an error
(though I can't really say right now whether the code is legal,
or whether C<32> should be a specialization of the general
class template).

Here's a redux:
------------------------
template <int> struct C {
    template<typename T> void pre_add(T);
};

template<>
template<typename T>
void C<32>::pre_add(T) {
  T pre;
}

int main() {
  C<32>().pre_add<int>(1);
}
---------------------------

g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
x.cc: In member function `void C<<anonymous> >::pre_add(T) [with T = int, int
   <anonymous> = 32]':
x.cc:12:   instantiated from here
x.cc:8: internal compiler error: in tsubst, at cp/pt.c:6694
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.




------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]