------- Comment #2 from pluto at agmk dot net 2006-03-09 10:10 ------- (In reply to comment #1) > ooops, it's invalid c++ (returning an array) code. > > the better testcase is: > > template < typename T, std::size_t N > > char[N]& sizer( T (&array)[N] ); > ^^^^^^^^ > the `char (&)[15]` can be returned by function. >
ok, my fault:/ now it works. template < typename T, std::size_t N > char (&sizer( T (&array)[N] ))[N]; -- pluto at agmk dot net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26615