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++/31038] [4.1/4.2/4.3 regression] ICE with C99 style compound literal vs templates vs instiaiontion



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-03-04 22:00 -------
I can fix the testcase here by optimizing when we produce a CLEANUP_POINT_EXPR
but the following testcase still fails at that point:

int f(void);
template<int> void foo()
{
  int i = (int) { f() };
}

template void foo<0>();


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-03-04 22:00:04
               date|                            |


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


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