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++/24664] Template instantiation generating an array of voids doesn't fail



------- Comment #2 from andrew dot stubbs at st dot com  2007-05-24 15:27 -------
You can create an array of functions. Also prohibited by clause 14.8.2/2.

template <class T> int f(T[5]);
typedef void (fn)();
int K = f<fn>(0);

At least it doesn't seem to accept reference types ...


-- 

andrew dot stubbs at st dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrew dot stubbs at st dot
                   |                            |com


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


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