public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/105483] New: injected-class-name and constructors diagnostic @ 2022-05-04 16:20 mpolacek at gcc dot gnu.org 2022-11-02 17:16 ` [Bug c++/105483] [10/11/12/13 Regression] " pinskia at gcc dot gnu.org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: mpolacek at gcc dot gnu.org @ 2022-05-04 16:20 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105483 Bug ID: 105483 Summary: injected-class-name and constructors diagnostic Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- Consider: struct X { }; void g () { X::X x; } for which we emit d.cc: In function ‘void g()’: d.cc:6:3: error: ‘X::__ct ’ names the constructor, not the type 6 | X::X x; | ^ d.cc:6:7: error: expected ‘;’ before ‘x’ 6 | X::X x; | ^~ | ; d.cc:6:9: error: statement cannot resolve address of overloaded function 6 | X::X x; | ^ which is too verbose and prints the internal "__ct" name. For comparison: $ xclang++ -c d.cc d.cc:6:6: error: qualified reference to 'X' is a constructor name rather than a type in this context X::X x; ^ ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/105483] [10/11/12/13 Regression] injected-class-name and constructors diagnostic 2022-05-04 16:20 [Bug c++/105483] New: injected-class-name and constructors diagnostic mpolacek at gcc dot gnu.org @ 2022-11-02 17:16 ` pinskia at gcc dot gnu.org 2022-12-20 13:40 ` rguenth at gcc dot gnu.org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu.org @ 2022-11-02 17:16 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105483 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |7.1.0 Ever confirmed|0 |1 Last reconfirmed| |2022-11-02 Summary|injected-class-name and |[10/11/12/13 Regression] |constructors diagnostic |injected-class-name and | |constructors diagnostic Target Milestone|--- |10.5 Known to fail| |8.1.0 Keywords| |needs-bisection Status|UNCONFIRMED |NEW --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- GCC 7 produces: <source>: In function 'void g()': <source>:6:3: error: 'X::X' names the constructor, not the type X::X x; ^ <source>:6:8: error: expected ';' before 'x' X::X x; ^ <source>:6:9: error: statement cannot resolve address of overloaded function X::X x; ^ While GCC 8 produces the __ct diagnostic. At least that part is a regression. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/105483] [10/11/12/13 Regression] injected-class-name and constructors diagnostic 2022-05-04 16:20 [Bug c++/105483] New: injected-class-name and constructors diagnostic mpolacek at gcc dot gnu.org 2022-11-02 17:16 ` [Bug c++/105483] [10/11/12/13 Regression] " pinskia at gcc dot gnu.org @ 2022-12-20 13:40 ` rguenth at gcc dot gnu.org 2022-12-27 14:18 ` [Bug c++/105483] [10/11/12/13 Regression] injected-class-name and constructors diagnostic since r8-1739-g3b5c768c40c78618 marxin at gcc dot gnu.org 2023-07-07 10:43 ` [Bug c++/105483] [11/12/13/14 " rguenth at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: rguenth at gcc dot gnu.org @ 2022-12-20 13:40 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105483 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/105483] [10/11/12/13 Regression] injected-class-name and constructors diagnostic since r8-1739-g3b5c768c40c78618 2022-05-04 16:20 [Bug c++/105483] New: injected-class-name and constructors diagnostic mpolacek at gcc dot gnu.org 2022-11-02 17:16 ` [Bug c++/105483] [10/11/12/13 Regression] " pinskia at gcc dot gnu.org 2022-12-20 13:40 ` rguenth at gcc dot gnu.org @ 2022-12-27 14:18 ` marxin at gcc dot gnu.org 2023-07-07 10:43 ` [Bug c++/105483] [11/12/13/14 " rguenth at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: marxin at gcc dot gnu.org @ 2022-12-27 14:18 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105483 Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs-bisection | CC| |marxin at gcc dot gnu.org, | |nathan at gcc dot gnu.org Summary|[10/11/12/13 Regression] |[10/11/12/13 Regression] |injected-class-name and |injected-class-name and |constructors diagnostic |constructors diagnostic | |since | |r8-1739-g3b5c768c40c78618 --- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> --- Started with r8-1739-g3b5c768c40c78618. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/105483] [11/12/13/14 Regression] injected-class-name and constructors diagnostic since r8-1739-g3b5c768c40c78618 2022-05-04 16:20 [Bug c++/105483] New: injected-class-name and constructors diagnostic mpolacek at gcc dot gnu.org ` (2 preceding siblings ...) 2022-12-27 14:18 ` [Bug c++/105483] [10/11/12/13 Regression] injected-class-name and constructors diagnostic since r8-1739-g3b5c768c40c78618 marxin at gcc dot gnu.org @ 2023-07-07 10:43 ` rguenth at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: rguenth at gcc dot gnu.org @ 2023-07-07 10:43 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105483 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|10.5 |11.5 --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- GCC 10 branch is being closed. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-07-07 10:43 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-05-04 16:20 [Bug c++/105483] New: injected-class-name and constructors diagnostic mpolacek at gcc dot gnu.org 2022-11-02 17:16 ` [Bug c++/105483] [10/11/12/13 Regression] " pinskia at gcc dot gnu.org 2022-12-20 13:40 ` rguenth at gcc dot gnu.org 2022-12-27 14:18 ` [Bug c++/105483] [10/11/12/13 Regression] injected-class-name and constructors diagnostic since r8-1739-g3b5c768c40c78618 marxin at gcc dot gnu.org 2023-07-07 10:43 ` [Bug c++/105483] [11/12/13/14 " rguenth at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).