public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58352] infinite template instantiation depth errors
       [not found] <bug-58352-4@http.gcc.gnu.org/bugzilla/>
@ 2013-09-07 12:04 ` daniel.kruegler at googlemail dot com
  2013-09-07 12:10 ` daniel.kruegler at googlemail dot com
  2021-12-16 22:09 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2013-09-07 12:04 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58352

Daniel Krügler <daniel.kruegler at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.kruegler@googlemail.
                   |                            |com

--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
The code example has undefined behaviour and moving your specialization to the
top is required to make it work. You hit [temp.dep.candidate] p1:

"For a function call where the postfix-expression is a dependent name, the
candidate functions are found using
the usual lookup rules (3.4.1, 3.4.2) except that:
— For the part of the lookup using unqualified name lookup (3.4.1), only
function declarations from the template definition context are found.
[..]

If the call would be ill-formed or would find a better match had the lookup
within the associated namespaces considered all the function declarations with
external linkage introduced in those namespaces in all translation units, not
just considering those declarations found in the template definition and
template
instantiation contexts, then the program has undefined behavior."
>From gcc-bugs-return-429206-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 07 12:08:31 2013
Return-Path: <gcc-bugs-return-429206-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22649 invoked by alias); 7 Sep 2013 12:08:31 -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 22615 invoked by uid 48); 7 Sep 2013 12:08:27 -0000
From: "1zeeky at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/58352] infinite template instantiation depth errors
Date: Sat, 07 Sep 2013 12:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: 1zeeky at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-58352-4-T0aqPA7qtg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58352-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58352-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: 2013-09/txt/msg00446.txt.bz2
Content-length: 376

http://gcc.gnu.org/bugzilla/show_bug.cgi?idX352

--- Comment #2 from 1zeeky at gmail dot com ---
I am aware that the code is invalid; I'm not saying there shouldn't be an
error.

The problem is, that g++ does not stop printing the error and needs to be
killed to stop. At least mine doesn't, maybe my downstream g++, or some
component (library) it uses, is broken somehow.


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

* [Bug c++/58352] infinite template instantiation depth errors
       [not found] <bug-58352-4@http.gcc.gnu.org/bugzilla/>
  2013-09-07 12:04 ` [Bug c++/58352] infinite template instantiation depth errors daniel.kruegler at googlemail dot com
@ 2013-09-07 12:10 ` daniel.kruegler at googlemail dot com
  2021-12-16 22:09 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2013-09-07 12:10 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58352

--- Comment #3 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
(In reply to 1zeeky from comment #2)
> I am aware that the code is invalid; I'm not saying there shouldn't be an
> error.

Then I was mislead by your comment: "I'm not 100% sure the attached testcase
*should* compile.". I agree that the diagnostics could be improved.
>From gcc-bugs-return-429208-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 07 12:13:37 2013
Return-Path: <gcc-bugs-return-429208-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25525 invoked by alias); 7 Sep 2013 12:13:37 -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 25502 invoked by uid 48); 7 Sep 2013 12:13:35 -0000
From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/58352] infinite template instantiation depth errors
Date: Sat, 07 Sep 2013 12:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: daniel.kruegler at googlemail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-58352-4-PeLPRfIXxx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58352-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58352-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-09/txt/msg00448.txt.bz2
Content-length: 167

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58352

--- Comment #4 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
Maybe related to bug 16564?
>From gcc-bugs-return-429209-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 07 12:16:17 2013
Return-Path: <gcc-bugs-return-429209-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26922 invoked by alias); 7 Sep 2013 12:16:16 -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 26892 invoked by uid 48); 7 Sep 2013 12:16:11 -0000
From: "1zeeky at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/58352] infinite template instantiation depth errors
Date: Sat, 07 Sep 2013 12:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: 1zeeky at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-58352-4-GYgDZglMLX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58352-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58352-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: 2013-09/txt/msg00449.txt.bz2
Content-length: 182

http://gcc.gnu.org/bugzilla/show_bug.cgi?idX352

--- Comment #5 from 1zeeky at gmail dot com ---
Ah, sorry. I wrote that before I found out that this was the issue with the
code.


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

* [Bug c++/58352] infinite template instantiation depth errors
       [not found] <bug-58352-4@http.gcc.gnu.org/bugzilla/>
  2013-09-07 12:04 ` [Bug c++/58352] infinite template instantiation depth errors daniel.kruegler at googlemail dot com
  2013-09-07 12:10 ` daniel.kruegler at googlemail dot com
@ 2021-12-16 22:09 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-16 22:09 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.9.0
      Known to work|                            |6.2.0
         Resolution|---                         |FIXED
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=16564
   Target Milestone|---                         |7.0
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed in GCC 6.2.0 and GCC 7.  In GCC 5.x and GCC 6.1.0, GCC would ICE:
'
Internal compiler error: Error reporting routines re-entered.
mmap: Invalid argument
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

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

end of thread, other threads:[~2021-12-16 22:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-58352-4@http.gcc.gnu.org/bugzilla/>
2013-09-07 12:04 ` [Bug c++/58352] infinite template instantiation depth errors daniel.kruegler at googlemail dot com
2013-09-07 12:10 ` daniel.kruegler at googlemail dot com
2021-12-16 22:09 ` pinskia 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).