Namespaces
Variants
Views
Actions

Talk:cpp/language/goto

From cppreference.com

[edit] scope of a label

This does not say the scope of a label. I assume, per translation unit, I can have 3 different functions (or class member functions) and the same label in each one and any goto would apply to the function in question.

StephenHowe (talk) 08:54, 20 November 2019 (PST)

if you click on "label", it takes you to the page that says "Labels (and only labels) have function scope. " --Cubbi (talk) 09:07, 20 November 2019 (PST)