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

Re: [Proposed binutils PATCH] Re: Diagnosing an intricate C++problem

>>>>> "Jason" == Jason Merrill <> writes:


CenterLine had possibly now-patented technology on doing ODR checking
by using hashing.  Care was taken not to diagnose "harmless" ODR
violations (which happen far more often than you might think).  For
example, it turned out that some of the Sun headers did something like
`#define foo bar' where `foo' was in the user namespace.  So, in real
programs, half of the files had `foo' replaced with `bar' everywhere;
this is an ODR violation, but not one that is harmful, or easy for
users to fix.  So, the ODR checker had a "sloppy" mode where it
allowed things like this, and also like `extern int x' in one file and
`long x' in another, if the `int' and `long' had the same number of

The possible patent-holders are friends of mine, and it is possible
that they would license the technology for use in GCC at no cost.  It
is also possible that they would not.  It is also possible that a
non-infringing alternative could be found.

Mark Mitchell         
CodeSourcery, LLC     

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