------- Comment #3 from pinskia at gcc dot gnu dot org  2006-08-24 03:29 -------
(In reply to comment #2)
> It doesn't seem to matter for me whether the function is a template or
> not. Which version did you use to get to that statement?

4.2.0 20060821 works without the template in that the following works:
struct A { int i; };

void foo()
{
    ((struct A) { 0 }).i += 1;
}


-- 


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

Reply via email to