Menu

#3053 [ds390] FATAL Compiler Internal Error on code using variable argument pointers

open
nobody
None
other
5
2020-06-14
2020-06-14
No
#include <stdarg.h>

int g(va_list ap);

void f(const char* s, ...)
{
    va_list *a[1], **b = a;
    g(**b);
    ++b;
    g(**b);
}

Compiling with sdcc test.c -mds390. This results in test.c:10: error 9: FATAL Compiler Internal Error in file 'gen.c' line number '1152' : AOP_STR with DPTR in use!. Tested with commit 11672.

Discussion


Log in to post a comment.

Auth0 Logo