[Bug c++/37540] [4.4 regression] ICE on __decltype of method call in function template

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Sep 17 10:29:00 GMT 2008



------- Comment #3 from jakub at gcc dot gnu dot org  2008-09-17 10:28 -------
Caused by http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=138843
Any reason why you look at CALL_EXPR_FN's type instead of just TREE_TYPE
(expr)?
In this case TREE_TYPE (expr) is int, but CALL_EXPR_FN is COMPONENT_REF with
NULL TREE_TYPE, created by:
5692  if (processing_template_decl && call != error_mark_node)
5693    call = (build_min_non_dep_call_list
5694    (call,
5695     build_min_nt (COMPONENT_REF, orig_instance, orig_fns, NULL_TREE),
5696     orig_args));


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dgregor at gcc dot gnu dot
                   |                            |org


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



More information about the Gcc-bugs mailing list