[Bug c++/40942] GCC accepts code that Comeau and MSVC deems invalid.
jwakely dot gcc at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Aug 4 12:55:00 GMT 2009
------- Comment #1 from jwakely dot gcc at gmail dot com 2009-08-04 12:48 -------
Testcase can be reduced to:
struct S
{
template <typename T>
S (T const *)
{ }
template <size_t N>
S (char const (&)[N])
{ }
};
int
main()
{
S s1 ("test");
}
GCC still accepts this while Comeau rejects it.
--
jwakely dot gcc at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jwakely dot gcc at gmail dot
| |com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40942
More information about the Gcc-bugs
mailing list