OSDN Git Service

PR c++/49855
[pf3gnuchains/gcc-fork.git] / gcc / cp / call.c
index 0ec0a07..c54ce7b 100644 (file)
@@ -8068,7 +8068,8 @@ perform_implicit_conversion_flags (tree type, tree expr, tsubst_flags_t complain
        }
       expr = error_mark_node;
     }
-  else if (processing_template_decl)
+  else if (processing_template_decl
+          && !(SCALAR_TYPE_P (type) && SCALAR_TYPE_P (TREE_TYPE (expr))))
     {
       /* In a template, we are only concerned about determining the
         type of non-dependent expressions, so we do not have to