Bug 115266 (cwg2389) - [cwg2389] Agreement of deduced and explicitly-specified variable types
Summary: [cwg2389] Agreement of deduced and explicitly-specified variable types
Status: NEW
Alias: cwg2389
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 15.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: rejects-valid
Depends on:
Blocks: c++-core-issues
  Show dependency treegraph
 
Reported: 2024-05-29 02:33 UTC by Andrew Pinski
Modified: 2024-05-29 16:41 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2024-05-29 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Pinski 2024-05-29 02:33:18 UTC
GCC rejects this even though it is the defect report makes this valid:
```
  struct S {
    static int i;
  };
  auto S::i = 23;
```