Skip to content
  • Sven/Sarah Barth's avatar
    Disallow the usage of the inline assembler inside generics, because there are... · b6bfa864
    Sven/Sarah Barth authored
    Disallow the usage of the inline assembler inside generics, because there are currently two problems:
    1. At least on x86 the assembler reader initializes the parameter location informations which results in InternalError 200301231
    2. Assembler tokens are not stored in the token stream and thus won't be reproduced during specialization
    
    x86/rax86int.pas, tx86intreader.Assemble:
      * check for "parse_generic" before calling generate_parameter_info
    pstatmnt.pas, assembler_block & statement:
      * generate an error message if an asm statement should be parsed inside a generic
    
    + added test
    
    git-svn-id: trunk@24892 -
    b6bfa864