This is the mail archive of the gcc-bugs@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]

[Bug c++/14545] [3.4/3.5 Regression] Cannot compile pooma-gcc (regression)


------- Additional Comments From mark at codesourcery dot com  2004-03-17 01:34 -------
Subject: Re:  [3.4/3.5 Regression] Cannot compile pooma-gcc
 (regression)

giovannibajo at libero dot it wrote:

>------- Additional Comments From giovannibajo at libero dot it  2004-03-17 01:19 -------
>Patch posted, waiting for review:
>http://gcc.gnu.org/ml/gcc-patches/2004-03/msg01265.html
>  
>
Thanks.

Actually, I disagree that we should build TARGET_EXPRs in templates.  We 
should defer building these kinds of complex tree structures until 
instantiation time.

Indeed, I think you should just check "!type_dependent_expression_p 
(type) && !INTEGRAL_OR_ENUMERATION_TYPE_P (type)".  I can't remember if 
that's *quite* right; it might be that casts to floating-point types 
should also be allowed.  You'll have to check the standard for that.

Would you mind trying that approach please?



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14545


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