Package: flex
Version: 2.6.4-8
Severity: normal

Dear Maintainer,

Using the RESET macro in a lex file causes code with inconsistent
indentation to be added to the output .c file:

clang -DHAVE_CONFIG_H -I. -I.. -I./include  -I../include -D_REENTRANT 
-D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/usr/include/freetype2 
-I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 
-I/usr/include/libpng16   -g3 -Wall -Werror -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wmissing-declarations -fno-common -mavx2 -O2  -g3 -Wall 
-Werror -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes 
-Wmissing-declarations -fno-common -mavx2 -fno-fast-math -funroll-loops 
-fomit-frame-pointer -fstrict-aliasing -pipe -Wsign-compare -Wtype-limits 
-Wformat-nonliteral -MT tools/qfcc/source/qc-lex.o -MD -MP -MF $depbase.Tpo -c 
-o tools/qfcc/source/qc-lex.o tools/qfcc/source/qc-lex.c &&\
mv -f $depbase.Tpo $depbase.Po
tools/qfcc/source/qc-lex.c:1542:13: error: misleading indentation; statement is 
not part of the previous 'if' [-Werror,-Wmisleading-indentation]
            if ( ! (yy_state_buf) )
            ^
tools/qfcc/source/qc-lex.c:1540:9: note: previous statement is here
        if ( ! (yy_state_buf) )
        ^
tools/qfcc/source/qc-lex.c:2344:3: error: misleading indentation; statement is 
not part of the previous 'if' [-Werror,-Wmisleading-indentation]
                return yy_is_jam ? 0 : yy_current_state;
                ^
tools/qfcc/source/qc-lex.c:2341:2: note: previous statement is here
        if ( ! yy_is_jam )
        ^
2 errors generated

QuakeForge is available from https://github.com/quakeforge/quakeforge

In addition, flex's generated file is inconsistent with its use of
spaces vs tabs (ignoring the tabs used in QF's qc-lex.l: such is
understandable).

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
merged-usr: no
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.18.0-4-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages flex depends on:
ii  debconf [debconf-2.0]  1.5.79
ii  libc6                  2.34-6
ii  m4                     1.4.19-1

Versions of packages flex recommends:
ii  clang-11 [c-compiler]   1:11.1.0-6+b2
ii  clang-13 [c-compiler]   1:13.0.1-7
ii  clang-14 [c-compiler]   1:14.0.6-2
ii  clang-6.0 [c-compiler]  1:6.0.1-14.1
ii  clang-7 [c-compiler]    1:7.0.1-12
ii  clang-9 [c-compiler]    1:9.0.1-20+b1
ii  gcc [c-compiler]        4:12.1.0-3
ii  gcc-10 [c-compiler]     10.4.0-4
ii  gcc-11 [c-compiler]     11.3.0-5
ii  gcc-12 [c-compiler]     12.2.0-1
ii  gcc-6 [c-compiler]      6.5.0-2
ii  gcc-8 [c-compiler]      8.4.0-7
ii  gcc-9 [c-compiler]      9.5.0-2
ii  libfl-dev               2.6.4-8

Versions of packages flex suggests:
ii  bison            2:3.8.2+dfsg-1
ii  build-essential  12.9
pn  flex-doc         <none>

-- no debconf information

Reply via email to