[Bug c++/31505] [4.3 Regression] Canonical types failures
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Apr 8 04:55:00 GMT 2007
------- Comment #5 from pinskia at gcc dot gnu dot org 2007-04-08 05:55 -------
Reduced testcase (which makes I am correct):
template <int dim> struct Point
{
Point (const double x, const double y);
};
Point<2> f(void) {}
void create_coarse_grid () {
static const Point<2> vertices_1[]
= {
Point<2> (-1., -1.),
Point<2> (-1./2, -1.),
Point<2> (0., -1.),
Point<2> (+1./2, -1.)
};
}
=====================
If I change [] to [4] then it works.
--
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-04-08 05:55:43
date| |
Summary|Canonical types failures |[4.3 Regression] Canonical
| |types failures
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31505
More information about the Gcc-bugs
mailing list