This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: Problems with PR 21210


On Wed, Jun 01, 2005 at 10:04:21AM -0700, Mark Mitchell wrote:
> Gabriel Dos Reis wrote:
> 
> >Yes, I do fully agree on that.  What I'm suggesting is that an int is
> >convertible to a __complex__ T, but the conversion must be requested
> >explicilty; just like T* -> int exists but must be written explicitly.
> 
> Well, that's not compatible with C99 or pre-4.0 G++.  Maybe that's OK.

Yes.  Pre-4.0 G++ code that uses __complex__ has to be broken anyway, 
so the sooner the better -- presuming it won't have to be broken again.

> I just wanted to fix a PR that affected 4.0.  I thought (and even still 
> think) that there is a relatively simple solution.  But, I also think 
> that this is now going to be a long discussion about a lot of other 
> isssues, with relatively low likelihood of a quick resolution.   I hope 
> that the committee will resolve all of these issues, and then we can 
> implement whatever it is that they decide.  Until then, I'm going to 
> unassign myself from the PR, and go on to other issues.

Let's not be hasty.  We can minimize (maybe eliminate) broken code 
when the C++ committee does speak just by turning off lots of implicit 
conversions.  That means some C99 code will have to be adjusted to 
compile with G++, but the result will be well-defined.  

Nathan Myers
ncm@codesourcery.com


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