Bug 125841

Summary: [C++26] P3868R1, Allow #line before module declarations
Product: gcc Reporter: Marek Polacek <mpolacek>
Component: c++Assignee: Not yet assigned to anyone <unassigned>
Status: UNCONFIRMED ---    
Severity: normal CC: daniel.kruegler, jakub, nshead, webrown.cpp
Priority: P3 Keywords: c++26
Version: 17.0   
Target Milestone: ---   
Host: Target:
Build: Known to work:
Known to fail: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 103524, 110338    

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.