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: RFC: Two possible fixes for g++.dg/torture/pr32950.C failure


On Mon, Jun 15, 2009 at 7:50 PM, Andrew Pinski<pinskia@gmail.com> wrote:
> On Mon, Jun 15, 2009 at 1:39 PM, Steve Ellcey<sje@cup.hp.com> wrote:
>> ? ? ? ?/proj/opensrc/nightly/build-ia64-hp-hpux11.23-trunk/obj_gcc/ia64-hp-hpux11.23/libstdc++-v3/include/complex:1028:25: internal compiler error: tree check: expected tree that contains 'decl common' structure, have 'ssa_name' in expand_assignment, at expr.c:4253
>>
>> This is coming from my new line "if (COMPLEX_MODE_P (DECL_MODE (from)))' so I
>> guess in this case from is a ssa_name instead of a tree. ?That seems odd since
>> from is declared as a tree.
>
> No, it is expected a DECL (a tree which contains a decl common
> structure) there and it got a SSA_NAME.
>
> SSA_NAMEs are not decls, they are their own subclass of tree.

You can refer to TYPE_MODE (TREE_TYPE (from)) instead, that
should work here.

Richard.

> Thanks,
> Andrew Pinski
>


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