October 28, 2010Re: More Clang diagnostic
Walter Bright Wrote: > bearophile wrote: > > Another diagnostic feature is to not just use the caret (we have discussed about it time ago) but it also underlines the wrong part: > > > > t.c:7:39: error: invalid operands to binary expression ('int' and 'struct A') > > return y + func(y ? ((SomeA.X + 40) + SomeA) / 42 + SomeA.X : SomeA.X); > > ~~~~~~~~~~~~~~ ^ ~~~~~ > > > Yes, we discussed it before. The Digital Mars C/C++ compiler does this, and > NOBODY CARES. > Not one person in 25 years has ever even commented on it. Nobody commented on > its lack in dmd. > It's a waste of time to implement things nobody cares about. I think that is a nice feature to have in a compiler. No life-chaging, no critical, but still nice.