+2013-09-10 Jan Hubicka <jh@suse.cz>
+ Paolo Carlini <paolo.carlini@oracle.com>
+
+ * cgraphunit.c (analyze_functions): Save input_location, set it
+ to UNKNOWN_LOCATION and restore it at the end.
+
2013-09-10 Martin Jambor <mjambor@suse.cz>
* ipa-cp.c (propagate_constants_topo): Do not ignore SCC
int i;
struct ipa_ref *ref;
bool changed = true;
+ location_t saved_loc = input_location;
bitmap_obstack_initialize (NULL);
cgraph_state = CGRAPH_STATE_CONSTRUCTION;
+ input_location = UNKNOWN_LOCATION;
/* Ugly, but the fixup can not happen at a time same body alias is created;
C++ FE is confused about the COMDAT groups being right. */
used by it. */
if (!seen_error ())
symtab_initialize_asm_name_hash ();
+
+ input_location = saved_loc;
}
/* Translate the ugly representation of aliases as alias pairs into nice
+2013-09-10 Jan Hubicka <jh@suse.cz>
+ Paolo Carlini <paolo.carlini@oracle.com>
+
+ * error.c (print_instantiation_partial_context_line): If
+ loc == UNKNOWN_LOCATION return immediately.
+
2013-09-09 Jakub Jelinek <jakub@redhat.com>
PR c++/58325
const struct tinst_level *t,
location_t loc, bool recursive_p)
{
- expanded_location xloc;
- xloc = expand_location (loc);
+ if (loc == UNKNOWN_LOCATION)
+ return;
+
+ expanded_location xloc = expand_location (loc);
if (context->show_column)
pp_verbatim (context->printer, _("%r%s:%d:%d:%R "),
+2013-09-10 Jan Hubicka <jh@suse.cz>
+ Paolo Carlini <paolo.carlini@oracle.com>
+
+ * g++.dg/template/cond2.C: Tweak, do not expect a "required from".
+
2013-09-10 Jeff Law <law@redhat.com>
* gcc.c-torture/compile/pr58343.c: New test.
template<int X, int Y> int test(c<X ? : Y>&); // { dg-error "omitted" }
void test(c<2>*c2) {
- test<0, 2>(*c2); // { dg-message "required" }
+ test<0, 2>(*c2);
}