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] |
On 05/16/2012 06:54 AM, Paolo Carlini wrote:So, in the meanwhile we learned that it doesn't.That would make sense to me; I don't know if it works that way now, though.isn't the diagnostic machinery able to cope with UNKNOWN_LOCATION? By default should be interpreted as input_location, no?
53371.C: In function âint main()â: 53371.C:11:15: error: cannot catch exceptions by rvalue reference } catch (int&&) { } ^
In function âint main()â: cc1plus: error: cannot catch exceptions by rvalue reference
Ok. Something like p2 below?
@@ -11968,7 +11968,8 @@ tsubst_qualified_id (tree qualified_id, tree args,
if (dependent_scope_p (scope))
{
if (is_template)
- expr = build_min_nt (TEMPLATE_ID_EXPR, expr, template_args);
+ expr = build_min_nt_loc (UNKNOWN_LOCATION, TEMPLATE_ID_EXPR,
+ expr, template_args);
Here we should be able to retain the location from the TEMPLATE_ID_EXPR we took apart earlier.
Thanks, Paolo.
Attachment:
p1
Description: Text document
Attachment:
p2
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |