-
Notifications
You must be signed in to change notification settings - Fork 141
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
Unrecognized return #435
Comments
This is a known bug, you can see the same behavior in #322 (closed), If you use
Note that the When I first saw this bug (in the issue I mentioned), I noticed another one regarding scopes (softly rewriting the fragmented |
Hello, after some discussion with the pedago, with thought it should not be allowed to declare struct inside function. |
if we should not declare a struct in .c files, then this is also wrong: struct s_test {
int a;
};
int main(void)
{
struct s_test test;
test.a = 42;
return (test.a);
} I tested this on the campus PC so i will repass the specs OS: Ubuntu 20.04.5 LTS |
Seems like this rules were never implemented in the norminette :( |
Describe the bug
Can't recognize return line on a simple main.
Erroneous code
Additional infos
Additional context
I was testing if the norm detects anonymous structs as norm error, but it can't recognize the return line.
The text was updated successfully, but these errors were encountered: