Re: [PATCH] c++/modules: Keep entity mapping info across duplicate_decls [PR99241]

2024-07-08 Thread Patrick Palka
On Mon, 8 Jul 2024, Nathaniel Shead wrote: > Bootstrapped and regtested on x86_64-pc-linux-gnu, OK for trunk/14? > > -- >8 -- > > When duplicate_decls finds a match with an existing imported > declaration, it clears DECL_LANG_SPECIFIC of the olddecl and replaces it > with the contents of newdecl

[PATCH] c++/modules: Keep entity mapping info across duplicate_decls [PR99241]

2024-07-07 Thread Nathaniel Shead
Bootstrapped and regtested on x86_64-pc-linux-gnu, OK for trunk/14? -- >8 -- When duplicate_decls finds a match with an existing imported declaration, it clears DECL_LANG_SPECIFIC of the olddecl and replaces it with the contents of newdecl; this clears DECL_MODULE_ENTITY_P causing an ICE if the s