Skip to content

C structure/_Complex variable type Intellisense bug!? #1112

@erdiata

Description

@erdiata

Hello,

In the following code, when I type "mystr.", a list of all members of mystruct_s is listed (a and b) as one would expect.

#include <stdio.h>
#include <complex.h>

typedef struct mystruct_s {
    int a;
    int b;
} mystruct_t;

int main() {
    mystruct_t mystr;
    mystr. // <<<<<----- a list of member variables is displayed
    return 0;
}

However, when I introduce another variable of the type _Complex, no list is displayed!!

The following code is an example when one of the member variables of the structure mystruct_s is a _Complex data type, the listing of member variables ceases.

#include <stdio.h>
#include <complex.h>

typedef struct mystruct_s {
    int a;
    int b;
    double _Complex  c;
} mystruct_t;

int main() {
    mystruct_t mystr;
    mystr. // <<<<<----- no list of member variables is displayed
    return 0;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions