Menu

#474 Autocompletion does not work by using const pointer

Undefined
open
nobody
Bug_Report
2017-02-04
2017-02-03
Alex Michel
No

Given:

struct Foo
{
   int aaaa;
   float bbbb;
};

int main()
{
   struct Foo bar;
   struct Foo * pointer = &bar;
   struct Foo * const const_pointer = &bar;

   pointer->aaaa;
   const_pointer->bbbb; // here is the problem

   return 0;
}
  1. autocompletion works by typing pointer->
  2. autocompletion does not work by typing const_pointer->

In the attached screenshot you can see that codeblocks means that the variable const_pointer is of type Fooconst*. That is bad.

1 Attachments

Discussion

  • ollydbg

    ollydbg - 2017-02-04
    • labels: --> CodeCompletion
     
  • ollydbg

    ollydbg - 2017-02-04

    I can confirm this bug.

     

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.