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

Problem with defining functions with noexcept specifier #490

Open
1 task done
SdtElectronics opened this issue Mar 1, 2023 · 2 comments
Open
1 task done

Problem with defining functions with noexcept specifier #490

SdtElectronics opened this issue Mar 1, 2023 · 2 comments
Assignees
Labels

Comments

@SdtElectronics
Copy link

  • Checked for duplicates

Describe the bug

A simple function definition with noexcept specifier fails with the error function definition is not allowed here

void f() noexcept {}
input_line_3:2:20: error: function definition is not allowed here
 void f() noexcept {}

Expected behavior

Function definition with noexcept specifier should be interpreted correctly.

To Reproduce

Give the input below to Cling:

void f() noexcept {}

Setup

This problem was discovered by @edfink234 in the Cline project. The Cling used by the Cline in service was build upon 1d5536f. I verified it is reproducible on ROOT 6.24/06 as well.

Additional context

N/A

@edfink234
Copy link

Also reproducible in 6.26/10 macosxarm64

@jalopezg-git
Copy link
Collaborator

Thanks all for the report! This is related to root-project/root#9449, for which we have a PR with some comments pending to be solved here: root-project/root#11265.

This is not directly tackled in the aforementioned PR, but it should be also doable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants