Bug 125841 - [C++26] P3868R1, Allow #line before module declarations
Summary: [C++26] P3868R1, Allow #line before module declarations
Status: UNCONFIRMED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 17.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: c++26
Depends on:
Blocks: c++-modules c++26-core
  Show dependency treegraph
 
Reported: 2026-06-16 21:00 UTC by Marek Polacek
Modified: 2026-06-18 02:43 UTC (History)
4 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Polacek 2026-06-16 21:00:23 UTC
See <https://wg21.link/P3868R1>.
Comment 1 Jakub Jelinek 2026-06-17 19:56:19 UTC
I think we implement this.  What is worse, we allow many other things which shouldn't be allowed there.  So, I think we should use this as an opportunity to actually verify what can come before it.