Skip to content

[BUG] Alias of unnamed declaration needs extra semicolon #545

Closed
@JohelEGP

Description

@JohelEGP

Title: Alias of unnamed declaration needs extra semicolon.

Minimal reproducer (https://cpp2.godbolt.org/z/TjfMhcKz6):

x :== :i32 = 0;
y: i32 = 0;
Commands:
cppfront main.cpp2
clang++17 -std=c++23 -stdlib=libc++ -lc++abi -pedantic-errors -Wall -Wextra -Wconversion -I . main.cpp

Expected result: Same as x :== :i32 = 0;; (currently?) or x :== (:i32 = 0);.

Actual result and error: main.cpp2(2,1): error: ';' expected at end of alias declaration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions