------- Comment #2 from hjl dot tools at gmail dot com 2009-01-16 19:41 ------- [...@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); } [...@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. [...@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