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: Universal Character Names, v2


> > So, first off, a meta-issue:  I do not think any support for extended
> > identifiers should appear in GNU C/C++/ObjC until this issue is
> > resolved.  Once we have something out there in the wild, users will
> > come to rely on its behavior, and we don't want to change it from
> > under them.
> 
> Users may rely on particular files being *accepted* - they're less likely
> to rely on them being rejected.  Implementing something strict (needed
> anyway for -pedantic), with an option to relax later, should be safe.

To make the set of accepted programs safe for later normalization, you'll
have to give a diagnostic every time an identifier search comes up empty
when searching for an indentifier with identical binary represenatation,
but does find one with the same visual representation.

I suppose the easiest way to implement this is to normalize early, but to store
the original representation too.

Of course, there can be harmless positives, like a local variable shadowing
another variable with wider scope, and the shadowing being benign.

-- 
--------------------------
SuperH (UK) Ltd.
2410 Aztec West / Almondsbury / BRISTOL / BS32 4QX
T:+44 1454 465658


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