[Bug c++/38877] [4.4 Regression] Revision 143404 caused ICE on 447.dealII in SPEC CPU 2006

2009-01-16 Thread hjl dot tools at gmail dot com


-- 

hjl dot tools at gmail dot com changed:

   What|Removed |Added

   Target Milestone|--- |4.4.0


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



[Bug c++/38877] [4.4 Regression] Revision 143404 caused ICE on 447.dealII in SPEC CPU 2006

2009-01-16 Thread jason at gcc dot gnu dot org


--- Comment #1 from jason at gcc dot gnu dot org  2009-01-16 19:39 ---
Testcase?  I don't have SPEC handy.


-- 


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



[Bug c++/38877] [4.4 Regression] Revision 143404 caused ICE on 447.dealII in SPEC CPU 2006

2009-01-16 Thread jason at gcc dot gnu dot org


-- 

jason at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING


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



[Bug c++/38877] [4.4 Regression] Revision 143404 caused ICE on 447.dealII in SPEC CPU 2006

2009-01-16 Thread hjl dot tools at gmail dot com


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

template int dim
std::pairbardim *, unsigned int
foo (const std::string name, unsigned int position)
{  
  const std::pairint,unsigned int tmp;
  return std::make_pair (new bardim(tmp.first),
 position);
 }
[...@gnu-27 build_base_o3.]$ /export/gnu/import/rrs/143437/usr/bin/gcc  -O2
x.cc -S
x.cc: In function ‘std::pairbardim*, 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.]$ 


-- 

hjl dot tools at gmail dot com changed:

   What|Removed |Added

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


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



[Bug c++/38877] [4.4 Regression] Revision 143404 caused ICE on 447.dealII in SPEC CPU 2006

2009-01-16 Thread hjl dot tools at gmail dot com


--- Comment #3 from hjl dot tools at gmail dot com  2009-01-16 19:46 ---
[...@gnu-27 build_base_o3.]$ cat y.cc
templateclass _T1, class _T2
struct pair
{
  typedef _T1 first_type;
  typedef _T2 second_type;
  _T1 first;
  _T2 second;
  pair () : first(), second() { }
  pair(const _T1 __a, const _T2 __b)
: first(__a), second(__b) { }
};

templateclass _T1, class _T2
inline pair_T1, _T2
make_pair(_T1 __x, _T2 __y)
{
return pair_T1, _T2(__x, __y);
}

template int dim class bar;

template int dim
pairbardim *, unsigned int
foo (unsigned int position)
{  
  const pairint,unsigned int tmp;
  return make_pair (new bardim(tmp.first),
 position);
 }
[...@gnu-27 build_base_o3.]$ /export/gnu/import/rrs/143437/usr/bin/gcc  -O2
y.cc -S
y.cc: In function ‘pairbardim*, unsigned int foo(unsigned int)’:
y.cc:27: 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.]$ 


-- 


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



[Bug c++/38877] [4.4 Regression] Revision 143404 caused ICE on 447.dealII in SPEC CPU 2006

2009-01-16 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Keywords||ice-on-valid-code
  Known to work||4.3.2
   Priority|P3  |P1


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



[Bug c++/38877] [4.4 Regression] Revision 143404 caused ICE on 447.dealII in SPEC CPU 2006

2009-01-16 Thread jason at gcc dot gnu dot org


-- 

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|NEW |ASSIGNED
   Last reconfirmed|2009-01-16 19:41:46 |2009-01-16 20:41:49
   date||


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



[Bug c++/38877] [4.4 Regression] Revision 143404 caused ICE on 447.dealII in SPEC CPU 2006

2009-01-16 Thread jason at gcc dot gnu dot org


--- Comment #4 from jason at gcc dot gnu dot org  2009-01-16 22:36 ---
Subject: Bug 38877

Author: jason
Date: Fri Jan 16 22:36:32 2009
New Revision: 143446

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=143446
Log:
PR c++/38877
* tree.c (lvalue_p_1): Allow non-fields in COMPONENT_REF.
* init.c (build_new): Don't call describable_type unless we
have an auto.

Added:
trunk/gcc/testsuite/g++.dg/template/lvalue1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/init.c
trunk/gcc/cp/tree.c


-- 


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



[Bug c++/38877] [4.4 Regression] Revision 143404 caused ICE on 447.dealII in SPEC CPU 2006

2009-01-16 Thread jason at gcc dot gnu dot org


--- Comment #5 from jason at gcc dot gnu dot org  2009-01-16 22:40 ---
Subject: Bug 38877

Author: jason
Date: Fri Jan 16 22:40:25 2009
New Revision: 143448

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=143448
Log:
PR c++/38877
* tree.c (lvalue_p_1): Allow non-fields in COMPONENT_REF.
* init.c (build_new): Don't call describable_type unless we
have an auto.

Modified:
trunk/gcc/testsuite/ChangeLog


-- 


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