Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested function not recognized with cross-compiler #7686

Closed
lcrocker opened this issue Jun 12, 2021 · 1 comment
Closed

Nested function not recognized with cross-compiler #7686

lcrocker opened this issue Jun 12, 2021 · 1 comment

Comments

@lcrocker
Copy link

Issue Type: Bug

  1. Set "compilerPath" in c_cpp_properties.json set to GCC cross-compiler, "cStandard" to "gnu17".
  2. Enter nested function (A GCC extension that should be allowed by "gnu17")
  3. Note that opening curly brace of inner function is red-squiggled, and hovering over it gives error indicating that it thinks the function definition is a declaration.

Note that when "compilerPath" is set to native compiler (e.g. /usr/bin/gcc), this doesn't happen.

Extension version: 1.4.1
VS Code version: Code 1.56.2 (054a9295330880ed74ceaedda236253b4f39a335, 2021-05-12T16:45:26.313Z)
OS version: Linux x64 5.8.0-55-generic

System Info
Item Value
CPUs Intel(R) Core(TM) i3-3217U CPU @ 1.80GHz (4 x 1379)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) 0, 0, 0
Memory (System) 15.57GB (6.91GB free)
Process Argv . --no-sandbox --crash-reporter-id 7e7bcae0-2227-4333-a86b-b3c3f8b1dcce
Screen Reader no
VM 0%
DESKTOP_SESSION ubuntu
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP ubuntu
XDG_SESSION_TYPE x11
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30300192
pythontb:30283811
vspre833cf:30267465
pythonptprofiler:30281270
vshan820:30294714
pythondataviewer:30285071
vscus158cf:30286554
pythonvsuse255:30319631
vscgsv2:30307504
vscorehov:30309549
vscod805cf:30301675
binariesv517cf:30312826

@sean-mcmanus
Copy link
Contributor

Duplicate of #1035. The VS issue was closed as low priority (https://developercommunity.visualstudio.com/t/intellisense-in-gcc-mode-does-not-recognize-nested/794903), but I re-activated it.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants