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++/38877] [4.4 Regression] Revision 143404 caused ICE on 447.dealII in SPEC CPU 2006



------- Comment #2 from hjl dot tools at gmail dot com  2009-01-16 19:41 -------
[hjl@gnu-27 build_base_o3.0000]$ cat x.cc
#include <string>
#include <utility>
template <int dim> class bar;

template <int dim>
std::pair<bar<dim> *, unsigned int>
foo (const std::string &name, unsigned int position)
{  
      const std::pair<int,unsigned int> tmp;
      return std::make_pair (new bar<dim>(tmp.first),
                             position);
 }
[hjl@gnu-27 build_base_o3.0000]$ /export/gnu/import/rrs/143437/usr/bin/gcc  -O2
x.cc -S
x.cc: In function ?std::pair<bar<dim>*, unsigned int> foo(const std::string&,
unsigned int)?:
x.cc:10: internal compiler error: tree check: expected field_decl, have
identifier_node in lvalue_p_1, at cp/tree.c:120
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
[hjl@gnu-27 build_base_o3.0000]$ 


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-01-16 19:41:46
               date|                            |


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


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