Commit f092a866 by Mark Mitchell Committed by Mark Mitchell

re PR c++/28148 (ICE with pointer to member function initializer and cast to a different type)

	PR c++/28148
	* varasm.c (output_constant): Give the front end another chance to
	expand constants, after stripping NOPs.

	PR c++/28148
	* g++.dg/init/ptrmem3.C: New test.

From-SVN: r115919
parent 493297e3
2006-08-03 Mark Mitchell <mark@codesourcery.com>
PR c++/28148
* varasm.c (output_constant): Give the front end another chance to
expand constants, after stripping NOPs.
2006-08-03 Jan Hubicka <jh@suse.cz>
* domwalk.c (walk_dominator_tree): Reorganize to non-recursive
......
2006-08-03 Mark Mitchell <mark@codesourcery.com>
PR c++/28148
* g++.dg/init/ptrmem3.C: New test.
2006-08-03 Dorit Nuzman <dorit@il.ibm.com>
PR tree-optimization/27770
// PR c++/28148
struct foo {
public:
virtual int bar(int);
};
void (foo::*__Virtual__foo__Var1)() = (void (foo::*)())(&foo::bar);
......@@ -4048,6 +4048,9 @@ output_constant (tree exp, unsigned HOST_WIDE_INT size, unsigned int align)
code = TREE_CODE (TREE_TYPE (exp));
thissize = int_size_in_bytes (TREE_TYPE (exp));
/* Give the front end another chance to expand constants. */
exp = lang_hooks.expand_constant (exp);
/* Allow a constructor with no elements for any data type.
This means to fill the space with zeros. */
if (TREE_CODE (exp) == CONSTRUCTOR
......
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