Skip to content

use of alex-3.5.2.0 on GHC/compiler/Lexer.x leads to errors #266

@shayne-fletcher

Description

@shayne-fletcher

the generated Lexer.hs fails to compile with

compiler/GHC/Parser/Lexer.x:3471:12: error: [GHC-31744]
    Duplicate INLINE pragmas for ‘alexScanUser’
    at _build/stage0/compiler/build/GHC/Parser/Lexer.hs:1294:12-23
       compiler/GHC/Parser/Lexer.x:3471:12-23
     |
3471 | -- in this file, alexScanUser gets broken out into a separate function and
     |            ^^^^^^^^^^^^

to reproduce

git clone https://gitlab.haskell.org/ghc/ghc.git --recursive
cd ghc
./boot && ./configure
./hadrian/build --flavour=quickest -j

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions