This is the mail archive of the gcc-patches@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]

Re: [C++ PATCH] Fix bug 51


>>>>> "Nathan" == Nathan Sidwell <nathan@codesourcery.com> writes:

> Nathan Sidwell wrote:
>> 
>> Hi,
>> this fixes bug 51, which is an example from the std.

> Oh, forgot to mention, g++.brendan/err-msg2.C is apparently incorrect
> and needs to be removed.

It's an error because the first typedef has C++ linkage and the second C.

  7.5  Linkage specifications                                 [dcl.link]

                                                               Two func-
  tion types with different language linkages are distinct types even if
  they are otherwise identical.

Jason


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