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++/40942] GCC accepts code that Comeau and MSVC deems invalid.



------- 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


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