Commit da7d88bf by Jason Merrill Committed by Jason Merrill

re PR c++/43024 (ICE on template code with -O2 or -O3, regression from 4.4.2)

	PR c++/43024
	* name-lookup.h (current_binding_level): Check for null
	cp_function_chain.

From-SVN: r156741
parent 8150eadf
2010-02-12 Jason Merrill <jason@redhat.com>
PR c++/43024
* name-lookup.h (current_binding_level): Check for null
cp_function_chain.
2010-02-12 Jason Merrill <jason@redhat.com>
PR c++/43054
* tree.c (cp_tree_equal): Correct CALL_EXPR logic.
......
......@@ -259,7 +259,7 @@ struct GTY(()) cp_binding_level {
/* The binding level currently in effect. */
#define current_binding_level \
(*(cfun && cp_function_chain->bindings \
(*(cfun && cp_function_chain && cp_function_chain->bindings \
? &cp_function_chain->bindings \
: &scope_chain->bindings))
......
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