You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
foo.qc:4: warning Q106: Assignment to const
foo.qc:1: const void() foo is defined here
foo.qc:4: warning Q106: Assignment to constant foo
foo.qc:1: const void() foo is defined here
OTOH gmqcc refuses this code, whereas fteqcc allows it:
void() foo_builtin = #1;
var void() foo = foo_builtin;
void() bar = {
foo = bar;
};
gmqcc's error:
foo.qc:2:24: error: initializer is non constant
I think the problem is that builtin definitions aren't const in gmqcc, but should be. The issue reproduces equally if the functions have a body instead of a builtin, and also equally when using C-style function declarations, and regardless of -std=.
The text was updated successfully, but these errors were encountered:
gmqcc permits this code, whereas fteqcc does not:
fteqcc's error:
OTOH gmqcc refuses this code, whereas fteqcc allows it:
gmqcc's error:
I think the problem is that builtin definitions aren't const in gmqcc, but should be. The issue reproduces equally if the functions have a body instead of a builtin, and also equally when using C-style function declarations, and regardless of
-std=
.The text was updated successfully, but these errors were encountered: