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

* [Bug c++/100078] [11 Regression] Rejected code since r11-8137-g84081e2c6bd43a67
  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 ` marxin at gcc dot gnu.org
  2021-04-14 17:51 ` jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
      Known to work|                            |10.3.0
   Target Milestone|---                         |11.0
      Known to fail|                            |11.0
   Last reconfirmed|                            |2021-04-14
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

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

* [Bug c++/100078] [11 Regression] Rejected code since r11-8137-g84081e2c6bd43a67
  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
  3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2021-04-14 17:51 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org

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

* [Bug c++/100078] [11 Regression] Rejected code since r11-8137-g84081e2c6bd43a67
  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
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-04-14 18:59 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:

https://gcc.gnu.org/g:00a2774923c1dc5666cd26bb9b8c37b1b7dd689d

commit r11-8182-g00a2774923c1dc5666cd26bb9b8c37b1b7dd689d
Author: Jason Merrill <jason@redhat.com>
Date:   Wed Apr 14 14:14:31 2021 -0400

    c++: premature overload resolution redux [PR100078]

    My patch for PR93085 didn't consider that a default template argument can
    also make a template dependent.

    gcc/cp/ChangeLog:

            PR c++/100078
            PR c++/93085
            * pt.c (uses_outer_template_parms): Also look at default
            template argument.

    gcc/testsuite/ChangeLog:

            PR c++/100078
            * g++.dg/template/dependent-tmpl2.C: New test.

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

* [Bug c++/100078] [11 Regression] Rejected code since r11-8137-g84081e2c6bd43a67
  2021-04-14 12:48 [Bug c++/100078] New: [11 Regression] Rejected code since r11-8137-g84081e2c6bd43a67 marxin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2021-04-14 18:59 ` cvs-commit at gcc dot gnu.org
@ 2021-04-14 19:01 ` jason at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2021-04-14 19:01 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed.

^ 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).