+2019-01-03 Paolo Carlini <paolo.carlini@oracle.com>
+
+ * tree.c (handle_nodiscard_attribute): Improve warning location.
+
2019-01-02 Marek Polacek <polacek@redhat.com>
PR c++/88612 - ICE with -Waddress-of-packed-member.
if (TREE_CODE (*node) == FUNCTION_DECL)
{
if (VOID_TYPE_P (TREE_TYPE (TREE_TYPE (*node))))
- warning (OPT_Wattributes, "%qE attribute applied to %qD with void "
- "return type", name, *node);
+ warning_at (DECL_SOURCE_LOCATION (*node),
+ OPT_Wattributes, "%qE attribute applied to %qD with void "
+ "return type", name, *node);
}
else if (OVERLOAD_TYPE_P (*node))
/* OK */;
+2019-01-03 Paolo Carlini <paolo.carlini@oracle.com>
+
+ * g++.dg/cpp1z/nodiscard3.C: Test locations too.
+
2019-01-03 Martin Liska <mliska@suse.cz>
PR testsuite/88436
PR c++/81486 - CTAD failing with ().
* g++.dg/cpp1z/class-deduction60.C: New test.
* g++.dg/cpp1z/class-deduction61.C: New test.
-
+
2019-01-02 Martin Sebor <msebor@redhat.com>
Jeff Law <law@redhat.com>
messages only on vect_hw_misalign targets.
2019-01-02 Steven G. Kargl <kargl@gcc.gnu.org>
-
+
* gfortran.dg/argument_checking_7.f90: Remove run-on error message.
* gfortran.dg/dec_d_lines_3.f: Ditto.
* gfortran.dg/dec_structure_24.f90: Ditto.
struct [[nodiscard]] D { int i; D(); ~D(); };
WUR E check1 (void);
-WUR void check2 (void); /* { dg-warning "nodiscard" } */
-WUR int foo; /* { dg-warning "nodiscard" } */
+WUR void check2 (void); /* { dg-warning "10:.nodiscard." } */
+WUR int foo; /* { dg-warning "9:.nodiscard." } */
int bar (void);
WURAI E check3 (void) { return (E)bar (); }
WUR A check4 (void);