[Bug c++/15299] [3.4/3.5 regression] ICE in resolve_overloaded_unification

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Wed May 5 18:57:00 GMT 2004


------- Additional Comments From bangerth at dealii dot org  2004-05-05 18:57 -------
This is probably the shortest possible: 
-------------- 
template <class T>  void fun_ptr(T (*)()); 
template <class T>  T    bar(); 
 
template <class> void foo () { 
  fun_ptr(bar<int>); 
} 
-------------- 
 
g/x> /home/bangerth/bin/gcc-3.3.4-pre/bin/c++ -c x.cc 
 
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc 
x.cc: In function `void foo()': 
x.cc:5: internal compiler error: in resolve_overloaded_unification, at cp/
pt.c:9228 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
 
g/x> /home/bangerth/bin/gcc-3.5-pre/bin/c++ -c x.cc 
x.cc: In function `void foo()': 
x.cc:5: internal compiler error: in resolve_overloaded_unification, at cp/
pt.c:9230 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
 
So it's a regression in 3.4/mainline. 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |3.4.0 3.5.0
      Known to work|                            |3.3.4
   Last reconfirmed|0000-00-00 00:00:00         |2004-05-05 18:57:46
               date|                            |
            Summary|Regression from GCC 3.3.3:  |[3.4/3.5 regression] ICE in
                   |Internal compiler error     |resolve_overloaded_unificati
                   |                            |on
   Target Milestone|---                         |3.4.1


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



More information about the Gcc-bugs mailing list