Commit ea585788 by Mark Mitchell Committed by Mark Mitchell

decl.c (start_enum): Use push_obstacks, not end_temporary_allocation.

	* decl.c (start_enum): Use push_obstacks, not
	end_temporary_allocation.
	(finish_enum): Call pop_obstacks.

From-SVN: r24244
parent cbf882af
1998-12-10 Mark Mitchell <mark@markmitchell.com> 1998-12-10 Mark Mitchell <mark@markmitchell.com>
* decl.c (start_enum): Use push_obstacks, not
end_temporary_allocation.
(finish_enum): Call pop_obstacks.
1998-12-10 Mark Mitchell <mark@markmitchell.com>
* class.c (instantiate_type): Return error_mark_node rather than * class.c (instantiate_type): Return error_mark_node rather than
junk. junk.
......
// Build don't link:
// Special g++ Options: -O2
struct E
{
int f(int);
};
int ha()
{
enum {X = 0};
int A, C;
E vList[10];
A = (C + 1) % 3;
vList[1].f(A);
}
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