Skip to content

Instantly share code, notes, and snippets.

@jdiez17
Created October 29, 2018 10:31
Show Gist options
  • Save jdiez17/682ff90a57b0d3e50674176623d085ff to your computer and use it in GitHub Desktop.
Save jdiez17/682ff90a57b0d3e50674176623d085ff to your computer and use it in GitHub Desktop.
test.c:25:1: internal compiler error: in output_constructor_regular_field, at varasm.c:5142
}
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.
shell returned 1
#include <stdint.h>
enum morse_symbol {
SHORT = 0,
LONG = 1
};
struct morse_entry {
uint8_t len;
enum morse_symbol seq[];
};
const struct morse_entry a = {.len = 2, .seq = {SHORT, LONG}};
const struct morse_entry b = {.len = 4, .seq = {LONG, SHORT, SHORT, SHORT}};
struct morse_entry g_morse_table[] = {
a,
b
};
int main() {
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment