Skip to content

Implicit pointer conversion isn't an error #14574

Description

@cD1rtX3

Description

The following nosensical code:

#include <stdio.h>

int main() {
	int i = 1;
	int *p = i;
	int **q = p;
	printf("%d, %p\n", *p, *q);
	return 0;
}

does not give an error in the IDE. GCC errors on this code even without warning flags:

Image

Issue Details

Item Value
Issue Category Bug
Target C/C++
VS Code Version Code 1.127.0 (4fe60c8b1cdac1c4c174f2fb180d0d758272d713, 2026-06-30T10:52:33+02:00)
OS Version Linux x64 6.8.0-134-generic
Extension Identifier ms-vscode.cpptools
Extension Version 1.33.4
Extension Publisher ms-vscode

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions