public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/106179] New: [13 Regression] Rejected code since r13-1390-g07ac550393d00fca
@ 2022-07-04  9:42 marxin at gcc dot gnu.org
  2022-07-04  9:42 ` [Bug c++/106179] " marxin at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-07-04  9:42 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106179

            Bug ID: 106179
           Summary: [13 Regression] Rejected code since
                    r13-1390-g07ac550393d00fca
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: jason at gcc dot gnu.org, slyfox at gcc dot gnu.org
  Target Milestone: ---

The following is rejected:

$ cat algo.ii
struct Mat {
  template <typename> Mat();
};
template <typename> struct Mat_;
template <typename _Tp> Mat::Mat() {
  _Tp commaInitializer = commaInitializer.operator Mat_<_Tp>;
}

$ g++ algo.ii -c
algo.ii: In constructor ‘Mat::Mat()’:
algo.ii:6:52: error: invalid template-id
    6 |   _Tp commaInitializer = commaInitializer.operator Mat_<_Tp>;
      |                                                    ^~~~

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-07-06  4:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-04  9:42 [Bug c++/106179] New: [13 Regression] Rejected code since r13-1390-g07ac550393d00fca marxin at gcc dot gnu.org
2022-07-04  9:42 ` [Bug c++/106179] " marxin at gcc dot gnu.org
2022-07-04  9:46 ` redi at gcc dot gnu.org
2022-07-04 11:59 ` rguenth at gcc dot gnu.org
2022-07-05 21:27 ` jason at gcc dot gnu.org
2022-07-06  4:40 ` cvs-commit at gcc dot gnu.org
2022-07-06  4:40 ` jason at gcc dot gnu.org
2022-07-06  4:43 ` jason 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).