On Thu, Mar 12, 2009 at 5:42 AM, Diego Novillo <dnovi...@google.com> wrote:
> Apologies if this is a basic misunderstanding of how C++ works, but to
> me this looks like a bug.  I am tracking down an ODR violation message
> that LTO is emitting when linking two TUs that include the same header
> file, but whose IL was generated with different front ends:
>
> $ cat f.h
> typedef const char * (*Callback)(void *, const char *, const int);

The 'const' on third argument is superfluous.

(Similar thing happens if you put 'const' on a scalar type on the
return type).

-- Gaby

Reply via email to