This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26615] compute size of static table in compile time rejected.
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Mar 2006 09:43:49 -0000
- Subject: [Bug c++/26615] compute size of static table in compile time rejected.
- References: <bug-26615-7667@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pluto at agmk dot net 2006-03-09 09:43 -------
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.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26615