* decl.c (finish_case_label): Given the LABEL_DECL a
DECL_CONTEXT.
From-SVN: r36365
+2000-09-12 Mark Mitchell <mark@codesourcery.com>
+
+ * decl.c (finish_case_label): Given the LABEL_DECL a
+ DECL_CONTEXT.
+
2000-09-12 Gabriel Dos Reis <gdr@codesourcery.com>
* error.c (TFF_PLAIN_IDENTIFIER, TFF_NAMESPACE_SCOPE,
}
label = build_decl (LABEL_DECL, NULL_TREE, NULL_TREE);
+ DECL_CONTEXT (label) = current_function_decl;
if (processing_template_decl)
{
--- /dev/null
+// Build don't link:
+// Origin: Alexandre Oliva <aoliva@cygnus.com>
+
+struct foo {
+ inline void bar();
+ foo();
+};
+
+inline void foo::bar() {
+ switch (0) {
+ case 0:
+ break;
+ }
+}
+
+foo::foo() {
+ bar();
+}