Issue #5464 has been reported by Naohisa Goto.

----------------------------------------
Bug #5464: compile error in vm_eval.c
http://redmine.ruby-lang.org/issues/5464

Author: Naohisa Goto
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 2.0.0dev (2011-10-19) [sparc-solaris2.10]


Solaris 10 ???? Fujitsu C Compiler Version 5.6 ???使???trunk??????????????????????????以???????????????????????????

"./vm_eval.c", line 275: error: initialization: constant expression is expected for variable: `args'

????????????????C????????????????????????????????確?????????????????使???????????????????
1???????代????????????????????????????????添???????????????????????????????????????????

--- vm_eval.c	(revision 33484)
+++ vm_eval.c	(working copy)
@@ -272,7 +272,10 @@
 
     me = rb_method_entry(klass, idRespond_to);
     if (me && !(me->flag & NOEX_BASIC)) {
-	VALUE args[2] = {ID2SYM(mid), Qtrue};
+      VALUE args[2];
+
+      args[0] = ID2SYM(mid);
+      args[1] = Qtrue;
 	if (!RTEST(vm_call0(th, recv, idRespond_to, 2, args, me))) {
 	    return Qundef;
 	}



-- 
http://redmine.ruby-lang.org