This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14545] [3.4/3.5 Regression] Cannot compile pooma-gcc (regression)
- From: "mark at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Mar 2004 01:34:41 -0000
- Subject: [Bug c++/14545] [3.4/3.5 Regression] Cannot compile pooma-gcc (regression)
- References: <20040312062911.14545.schmid@snake.iap.physik.tu-darmstadt.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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