[Issue 10582] Programmed and Compiler generated symbols clash.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 20 07:55:59 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10582



--- Comment #4 from Iain Buclaw <ibuclaw at ubuntu.com> 2013-08-20 07:55:58 PDT ---
(In reply to comment #3)
> (In reply to comment #2)
> > Probably it should be a compile-time error to even attempt to define a symbol
> > which identifier starts with "__"?
> 
> You can't do that. eg: gdc defines internal library functions beginning with
> '__', such as __gdc_personality_sj0/__gdc_personality_v0

And there's quite a few symbols in core.stdc that use __

Picking out a few from grep:

___pthread_cond_flags __pthread_cond_flags;
c_long __align;
enum __SIZEOF_PTHREAD_BARRIER_T = 20;

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list