public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/100078] New: [11 Regression] Rejected code since r11-8137-g84081e2c6bd43a67
@ 2021-04-14 12:48 marxin at gcc dot gnu.org
  2021-04-14 12:48 ` [Bug c++/100078] " marxin at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-04-14 12:48 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100078
           Summary: [11 Regression] Rejected code since
                    r11-8137-g84081e2c6bd43a67
           Product: gcc
           Version: 11.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
  Target Milestone: ---

The following is reduced from webkit2gtk3 package:

$ cat 2to3.ii
template <bool> struct enable_if;
template <typename Data> struct HashMapBucket {
  template <typename T = Data>
  static typename enable_if<T ::value>::type selectStructure() {
    selectStructure();
  }
};

$ g++ 2to3.ii -c
2to3.ii: In static member function ‘static typename enable_if<T::value>::type
HashMapBucket<Data>::selectStructure()’:
2to3.ii:5:20: error: no matching function for call to
‘HashMapBucket<Data>::selectStructure()’
    5 |     selectStructure();
      |     ~~~~~~~~~~~~~~~^~
2to3.ii:4:46: note: candidate: ‘template<class Data> template<class T> static
typename enable_if<T::value>::type HashMapBucket<Data>::selectStructure()’
    4 |   static typename enable_if<T ::value>::type selectStructure() {
      |                                              ^~~~~~~~~~~~~~~
2to3.ii:4:46: note:   template argument deduction/substitution failed:

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

end of thread, other threads:[~2021-04-14 19:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-14 12:48 [Bug c++/100078] New: [11 Regression] Rejected code since r11-8137-g84081e2c6bd43a67 marxin at gcc dot gnu.org
2021-04-14 12:48 ` [Bug c++/100078] " marxin at gcc dot gnu.org
2021-04-14 17:51 ` jason at gcc dot gnu.org
2021-04-14 18:59 ` cvs-commit at gcc dot gnu.org
2021-04-14 19:01 ` 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).