This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/40942] GCC accepts code that Comeau and MSVC deems invalid.
- From: "jwakely dot gcc at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Aug 2009 12:48:39 -0000
- Subject: [Bug c++/40942] GCC accepts code that Comeau and MSVC deems invalid.
- References: <bug-40942-629@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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