2013-10-03 Easwaran Raman <eraman@google.com>
PR c++/33911
* parser.c (cp_parser_init_declarator): Do not drop attributes
of template member functions.
2013-10-03 Easwaran Raman <eraman@google.com>
PR c++/33911
* g++.dg/ext/attribute47.C: New.
From-SVN: r203174
+2013-10-03 Easwaran Raman <eraman@google.com>
+
+ PR c++/33911
+ * parser.c (cp_parser_init_declarator): Do not drop attributes
+ of template member functions.
+
2013-10-03 Marek Polacek <polacek@redhat.com>
PR c++/58510
decl = grokfield (declarator, decl_specifiers,
initializer, !is_non_constant_init,
/*asmspec=*/NULL_TREE,
- prefix_attributes);
+ chainon (attributes, prefix_attributes));
if (decl && TREE_CODE (decl) == FUNCTION_DECL)
cp_parser_save_default_args (parser, decl);
}
+2013-10-03 Easwaran Raman <eraman@google.com>
+
+ PR c++/33911
+ * g++.dg/ext/attribute47.C: New.
+
2013-10-03 Marek Polacek <polacek@redhat.com>
PR c++/58510
--- /dev/null
+// { dg-do compile }
+// { dg-options "-O2" }
+
+class A
+{
+ public:
+ template <class T>
+ T foo(T a) __attribute__ ((noinline));
+};
+
+template <class T>
+ T A::foo(T a)
+ {
+ return a+1;
+ }
+
+int bar(A a) {
+ return a.foo(1);
+}
+
+// { dg-final { scan-assembler "_ZN1A3fooIiEET_S1_" } }