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: C++ PATCH: PR 23293


Nathan Sidwell <nathan@codesourcery.com> writes:

> Mark Mitchell wrote:
>> Jason, Nathan --
>> What say you?  Keep the patch or back it out?
>
> I think user input is very valuable on this issue.  I think the old behaviour is 
> better, but I'm not a user, and tend not to typedef scalars anyway.  I was 
> wondering how to get the best of both worlds.
>
>   How about only looking through typedefs that are NOT instantiations?  Then
> 	typedef int X;
> 	typedef Vector<X> V;  // rendered as Vector<int>
> 	List<X> // rendered as List<int>
> 	List<V> // rendered as List<V>

Not sure what you mean by "are not instantiations", but that looks
like it would be confusing to me.  Let me repeat, GCC is doing very
well in this department.  I'd hate to break it by inventing new
"cures" on the fly.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com


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