hackt
hackt copied to clipboard
instance declaration instref_lval shadows preprocessor parameter
Compilation stack trace:
In file included from parser/instref-parse.yy:17:0: parser/instref-parse.cc: In function 'int instref_parse(void*, YYSTYPE&, flex::lexer_state&)': ./parser/instref-prefix.h:40:17: error: declaration of 'YYSTYPE instref_lval' shadows a parameter #define yylval instref_lval
which file was being compiled that failed? (as reported by make) I'll probably need a copy of the input file.
It seems it is hackt-parse-real.cc
full stack trace: libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../hackt/src -I../../hackt/src -pipe -ansi -pedantic-errors -Wold-style-cast -Woverloaded-virtual -W -Wextra -Wall -Wundef -Wshadow -Wno-unused-parameter -Wpointer-arith -Wcast-qual -Wcast-align -Wconversion -Werror -Wno-unused -Wno-old-style-cast -Wno-shadow -g -O2 -Wno-error=conversion -Wno-error=sign-compare -Wno-error=unused-local-typedefs -MT parser/libhacktparsers_la-hackt-parse-real.lo -MD -MP -MF parser/.deps/libhacktparsers_la-hackt-parse-real.Tpo -c parser/hackt-parse-real.cc -fPIC -DPIC -o parser/.libs/libhacktparsers_la-hackt-parse-real.o In file included from parser/hackt-parse.yy:28:0: parser/hackt-parse.cc: In function 'int hackt_parse(void*, YYSTYPE&, flex::lexer_state&)': ./parser/hackt-prefix.h:40:17: error: declaration of 'YYSTYPE hackt_lval' shadows a parameter #define yylval hackt_lval
Source file emailed to you
@tadeoman did you ever figure this out? Getting the same error on a vanilla centos 7 system