Menu

#518 Source parser error (SVN 11087

Undefined
open
nobody
Undefined
2017-06-15
2017-06-12
temp__a
No

(in C++)
lines like
struct aaa { something } *bbb = NULL;
result in
ReadVarNames() : Unexpected token '=' for 'aaa', file '...
on the console, despite this being perfectly normal C++

Discussion

  • Teodor Petrov

    Teodor Petrov - 2017-06-12

    Has this ever worked? Which is the last version you know that works correctly? Can you share the full source code (best if it doesn't include anything) that can be used to reproduce the problem?

     
  • temp__a

    temp__a - 2017-06-12

    I did not say, that it's a regression. It's a bug, in that version.

    Are you not able to reproduce it with that line?

     
  • Teodor Petrov

    Teodor Petrov - 2017-06-13

    I've not tried, because the steps to reproduce aren't clear and I'm not working on the CC.

     
  • temp__a

    temp__a - 2017-06-13

    Yeah, those steps are very difficult:
    step 1: put the line in any C++ project
    step 2: see the error on the console
    Why did you ask for a more complicated way to reproduce, if you didn't even test what I had already provided?

     
  • ollydbg

    ollydbg - 2017-06-15

    I can confirm this bug, just put the line

    struct aaa { something } *bbb = NULL;

    in an empty source file, then reparse the project.
    It is a bug as I see. Thanks for the report, and the minimal test code.

     
  • ollydbg

    ollydbg - 2017-06-15
    • labels: --> CodeCompletion
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.