* [Bug c++/64603] [5 Regression] bogus error "no matching function for call to ..." with templates
2015-01-14 21:22 [Bug c++/64603] New: [5 Regression] bogus error "no matching function for call to ..." with templates janus at gcc dot gnu.org
@ 2015-01-14 21:52 ` ville.voutilainen at gmail dot com
2015-01-15 8:31 ` janus at gcc dot gnu.org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ville.voutilainen at gmail dot com @ 2015-01-14 21:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64603
Ville Voutilainen <ville.voutilainen at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-01-14
CC| |ville.voutilainen at gmail dot com
Known to work| |4.7.3, 4.8.2, 4.9.1
Ever confirmed|0 |1
Known to fail| |5.0
--- Comment #1 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
Clang also accepts the code.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/64603] [5 Regression] bogus error "no matching function for call to ..." with templates
2015-01-14 21:22 [Bug c++/64603] New: [5 Regression] bogus error "no matching function for call to ..." with templates janus at gcc dot gnu.org
2015-01-14 21:52 ` [Bug c++/64603] " ville.voutilainen at gmail dot com
@ 2015-01-15 8:31 ` janus at gcc dot gnu.org
2015-01-15 9:29 ` rguenth at gcc dot gnu.org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: janus at gcc dot gnu.org @ 2015-01-15 8:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64603
janus at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |5.0
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/64603] [5 Regression] bogus error "no matching function for call to ..." with templates
2015-01-14 21:22 [Bug c++/64603] New: [5 Regression] bogus error "no matching function for call to ..." with templates janus at gcc dot gnu.org
2015-01-14 21:52 ` [Bug c++/64603] " ville.voutilainen at gmail dot com
2015-01-15 8:31 ` janus at gcc dot gnu.org
@ 2015-01-15 9:29 ` rguenth at gcc dot gnu.org
2015-01-15 20:00 ` janus at gcc dot gnu.org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-01-15 9:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64603
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/64603] [5 Regression] bogus error "no matching function for call to ..." with templates
2015-01-14 21:22 [Bug c++/64603] New: [5 Regression] bogus error "no matching function for call to ..." with templates janus at gcc dot gnu.org
` (2 preceding siblings ...)
2015-01-15 9:29 ` rguenth at gcc dot gnu.org
@ 2015-01-15 20:00 ` janus at gcc dot gnu.org
2015-01-19 14:52 ` jakub at gcc dot gnu.org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: janus at gcc dot gnu.org @ 2015-01-15 20:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64603
--- Comment #2 from janus at gcc dot gnu.org ---
Further reduced test case:
template <int i> constexpr int find_longest_name()
{
return sizeof("Main") - 1;
}
template <int i, int l = find_longest_name<i>()> void create_all_loggers()
{}
int main()
{
create_all_loggers<1>();
}
$ g++-5.0 logging.cc -std=c++11
logging.cc: In function ‘int main()’:
logging.cc:11:25: error: no matching function for call to
‘create_all_loggers()’
create_all_loggers<1>();
^
logging.cc:6:55: note: candidate: template<int i, int l> void
create_all_loggers()
template <int i, int l = find_longest_name<i>()> void create_all_loggers()
^
logging.cc:6:55: note: template argument deduction/substitution failed:
logging.cc:6: confused by earlier errors, bailing out
>From gcc-bugs-return-473406-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 15 20:01:32 2015
Return-Path: <gcc-bugs-return-473406-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19555 invoked by alias); 15 Jan 2015 20:01:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 19523 invoked by uid 48); 15 Jan 2015 20:01:28 -0000
From: "hubicka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/64612] [5 Regression] profiledbootstrap failures
Date: Thu, 15 Jan 2015 20:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hubicka at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64612-4-zs0XYrwKj8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64612-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64612-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-01/txt/msg01400.txt.bz2
Content-length: 144
https://gcc.gnu.org/bugzilla/show_bug.cgi?idd612
--- Comment #3 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Seems like dup of PR64583
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/64603] [5 Regression] bogus error "no matching function for call to ..." with templates
2015-01-14 21:22 [Bug c++/64603] New: [5 Regression] bogus error "no matching function for call to ..." with templates janus at gcc dot gnu.org
` (3 preceding siblings ...)
2015-01-15 20:00 ` janus at gcc dot gnu.org
@ 2015-01-19 14:52 ` jakub at gcc dot gnu.org
2015-01-19 15:43 ` janus at gcc dot gnu.org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-19 14:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64603
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r217664.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/64603] [5 Regression] bogus error "no matching function for call to ..." with templates
2015-01-14 21:22 [Bug c++/64603] New: [5 Regression] bogus error "no matching function for call to ..." with templates janus at gcc dot gnu.org
` (4 preceding siblings ...)
2015-01-19 14:52 ` jakub at gcc dot gnu.org
@ 2015-01-19 15:43 ` janus at gcc dot gnu.org
2015-01-21 21:26 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: janus at gcc dot gnu.org @ 2015-01-19 15:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64603
--- Comment #4 from janus at gcc dot gnu.org ---
(In reply to Jakub Jelinek from comment #3)
> Started with r217664.
Confirmed. Reverting that guy fixes the problem:
Index: gcc/cp/constexpr.c
===================================================================
--- gcc/cp/constexpr.c (Revision 219840)
+++ gcc/cp/constexpr.c (Arbeitskopie)
@@ -1049,7 +1049,7 @@ adjust_temp_type (tree type, tree temp)
/* True if we want to use the new handling of constexpr calls based on
DECL_SAVED_TREE. */
-#define use_new_call true
+#define use_new_call (cxx_dialect >= cxx14)
/* Subroutine of cxx_eval_call_expression.
We are processing a call expression (either CALL_EXPR or
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/64603] [5 Regression] bogus error "no matching function for call to ..." with templates
2015-01-14 21:22 [Bug c++/64603] New: [5 Regression] bogus error "no matching function for call to ..." with templates janus at gcc dot gnu.org
` (5 preceding siblings ...)
2015-01-19 15:43 ` janus at gcc dot gnu.org
@ 2015-01-21 21:26 ` jason at gcc dot gnu.org
2015-01-21 21:57 ` jason at gcc dot gnu.org
2015-01-23 16:40 ` jason at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2015-01-21 21:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64603
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |jason at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/64603] [5 Regression] bogus error "no matching function for call to ..." with templates
2015-01-14 21:22 [Bug c++/64603] New: [5 Regression] bogus error "no matching function for call to ..." with templates janus at gcc dot gnu.org
` (6 preceding siblings ...)
2015-01-21 21:26 ` jason at gcc dot gnu.org
@ 2015-01-21 21:57 ` jason at gcc dot gnu.org
2015-01-23 16:40 ` jason at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2015-01-21 21:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64603
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Jan 21 21:56:34 2015
New Revision: 219973
URL: https://gcc.gnu.org/viewcvs?rev=219973&root=gcc&view=rev
Log:
PR c++/64603
* constexpr.c (cxx_eval_constant_expression): Only shortcut
constant CONSTRUCTORs.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-sizeof1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/constexpr.c
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/64603] [5 Regression] bogus error "no matching function for call to ..." with templates
2015-01-14 21:22 [Bug c++/64603] New: [5 Regression] bogus error "no matching function for call to ..." with templates janus at gcc dot gnu.org
` (7 preceding siblings ...)
2015-01-21 21:57 ` jason at gcc dot gnu.org
@ 2015-01-23 16:40 ` jason at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2015-01-23 16:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64603
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 10+ messages in thread