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

[tree-ssa]: Invalid GIMPLE generated by C++ front end


I've been seeing expressions like T.2 = (char * const &)&<UVbbd0> generated by the C++ FE lately (compiling string-inst.cc on darwin, for instance).

Are these actually valid GIMPLE?
Going by the grammar, they aren't, and they are causing PTA to miss some variables because they fail is_gimple_modify_expr.


val : ID | CONST

   rhs        : varname | CONST
        | '*' ID
        | '&' varname_or_temp
        | call_expr
        | unop val
        | val binop val
        | '(' cast ')' val


Jason, any clue what is generating these, or do you need some preprocessed source?
--Dan



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