Commit 71ad4a16 by Mark Mitchell Committed by Mark Mitchell

decl.c (finish_case_label): Given the LABEL_DECL a DECL_CONTEXT.

	* decl.c (finish_case_label): Given the LABEL_DECL a
	DECL_CONTEXT.

From-SVN: r36365
parent c9541287
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,
......
......@@ -5226,6 +5226,7 @@ finish_case_label (low_value, high_value)
}
label = build_decl (LABEL_DECL, NULL_TREE, NULL_TREE);
DECL_CONTEXT (label) = current_function_decl;
if (processing_template_decl)
{
......
// 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();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment