public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/43113] too long diagnostics in some cases of recursive template instantiation
       [not found] <bug-43113-4@http.gcc.gnu.org/bugzilla/>
@ 2014-05-20 16:06 ` manu at gcc dot gnu.org
  2014-09-30 17:36 ` paolo.carlini at oracle dot com
  2021-12-16 23:09 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 7+ messages in thread
From: manu at gcc dot gnu.org @ 2014-05-20 16:06 UTC (permalink / raw)
  To: gcc-bugs

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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |paolo.carlini at oracle dot com
         Depends on|                            |16564

--- Comment #5 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
I don't want to mark it as a duplicate because PR16564 is a bit more complex. 

I think this one should be easier to fix. We could always print:

pr43113.C:7:11: error: template instantiation depth exceeds maximum of 10 (use
-ftemplate-depth= to increase the maximum) instantiating ‘struct
A<[...]<A<B>::S>[...]>::S>’
pr43113.C:7:11:   recursively instantiated from ‘A<A<B>::S>’
pr43113.C:7:11:   instantiated from ‘A<B>’
pr43113.C:10:20:   instantiated from here
pr43113.C:7:11: error: ‘A<S>::ht’ has incomplete type
>From gcc-bugs-return-452055-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue May 20 16:36:20 2014
Return-Path: <gcc-bugs-return-452055-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18941 invoked by alias); 20 May 2014 16:36:19 -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 18560 invoked by uid 48); 20 May 2014 16:36:14 -0000
From: "doko at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/61231] [4.9/4.10 Regression] bootstrap comparision failure on powerpc64le-linux-gnu
Date: Tue, 20 May 2014 16:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: doko at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.1
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-61231-4-dH3aIGVMZ5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61231-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61231-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: 2014-05/txt/msg01747.txt.bz2
Content-length: 218

https://gcc.gnu.org/bugzilla/show_bug.cgi?ida231

--- Comment #8 from Matthias Klose <doko at gcc dot gnu.org> ---
on powerpc64le, the test passes with both the stage2 and stage3 compilers of
the problematic build.


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

* [Bug c++/43113] too long diagnostics in some cases of recursive template instantiation
       [not found] <bug-43113-4@http.gcc.gnu.org/bugzilla/>
  2014-05-20 16:06 ` [Bug c++/43113] too long diagnostics in some cases of recursive template instantiation manu at gcc dot gnu.org
@ 2014-09-30 17:36 ` paolo.carlini at oracle dot com
  2021-12-16 23:09 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-09-30 17:36 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43113
Bug 43113 depends on bug 16564, which changed state.

Bug 16564 Summary: g++ seems to go into an infinite loop after errors
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16564

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


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

* [Bug c++/43113] too long diagnostics in some cases of recursive template instantiation
       [not found] <bug-43113-4@http.gcc.gnu.org/bugzilla/>
  2014-05-20 16:06 ` [Bug c++/43113] too long diagnostics in some cases of recursive template instantiation manu at gcc dot gnu.org
  2014-09-30 17:36 ` paolo.carlini at oracle dot com
@ 2021-12-16 23:09 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-16 23:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
For the original case in comment #0 we get in GCC 5+:
<source>: In instantiation of 'struct A<A<A<A<A<B>::S>::S>::S>::S>':
<source>:5:11:   recursively required from 'struct A<A<B>::S>'
<source>:5:11:   required from 'struct A<B>'
<source>:8:12:   required from here
<source>:5:11: fatal error: template instantiation depth exceeds maximum of 5
(use -ftemplate-depth= to increase the maximum)
   A < S > ht;
           ^

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

* [Bug c++/43113] too long diagnostics in some cases of recursive template instantiation
  2010-02-18 13:30 [Bug c++/43113] New: " zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2010-02-20  0:36 ` manu at gcc dot gnu dot org
@ 2010-04-28  8:46 ` manu at gcc dot gnu dot org
  3 siblings, 0 replies; 7+ messages in thread
From: manu at gcc dot gnu dot org @ 2010-04-28  8:46 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 963 bytes --]



------- Comment #4 from manu at gcc dot gnu dot org  2010-04-28 08:46 -------
The output is now:

$ cc1plus pr43113.C -ftemplate-depth=10

pr43113.C:7:11: error: template instantiation depth exceeds maximum of 10 (use
-ftemplate-depth= to increase the maximum) instantiating ‘struct
A<A<A<A<A<A<A<A<A<A<A<B>::S>::S>::S>::S>::S>::S>::S>::S>::S>::S>’
pr43113.C:7:11:   recursively instantiated from ‘A<A<B>::S>’
pr43113.C:7:11:   instantiated from ‘A<B>’
pr43113.C:10:20:   instantiated from here

pr43113.C:7:11: error: ‘A< <template-parameter-1-1> >::ht’ has incomplete type
pr43113.C:5:8: error: declaration of ‘struct
A<A<A<A<A<A<A<A<A<A<A<B>::S>::S>::S>::S>::S>::S>::S>::S>::S>::S>’

The template-parameter-1-1 is wrong, not sure what is going on there.

We could avoid the two long lines by not printing the full instantiation, only
the first recursion, that is, just 'struct A<A<B>::S>'


-- 


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


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

* [Bug c++/43113] too long diagnostics in some cases of recursive template instantiation
  2010-02-18 13:30 [Bug c++/43113] New: " zsojka at seznam dot cz
  2010-02-18 14:19 ` [Bug c++/43113] " paolo dot carlini at oracle dot com
  2010-02-20  0:36 ` manu at gcc dot gnu dot org
@ 2010-02-20  0:36 ` manu at gcc dot gnu dot org
  2010-04-28  8:46 ` manu at gcc dot gnu dot org
  3 siblings, 0 replies; 7+ messages in thread
From: manu at gcc dot gnu dot org @ 2010-02-20  0:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from manu at gcc dot gnu dot org  2010-02-20 00:36 -------
This is a different case than 9335.

Comeau does not handle this well either, so I am not sure how this case could
be solved.


-- 

manu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu dot org
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|DUPLICATE                   |


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


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

* [Bug c++/43113] too long diagnostics in some cases of recursive template instantiation
  2010-02-18 13:30 [Bug c++/43113] New: " zsojka at seznam dot cz
  2010-02-18 14:19 ` [Bug c++/43113] " paolo dot carlini at oracle dot com
@ 2010-02-20  0:36 ` manu at gcc dot gnu dot org
  2010-02-20  0:36 ` manu at gcc dot gnu dot org
  2010-04-28  8:46 ` manu at gcc dot gnu dot org
  3 siblings, 0 replies; 7+ messages in thread
From: manu at gcc dot gnu dot org @ 2010-02-20  0:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from manu at gcc dot gnu dot org  2010-02-20 00:36 -------
But this is confirmed in GCC 4.5


-- 

manu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-02-20 00:36:39
               date|                            |


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


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

* [Bug c++/43113] too long diagnostics in some cases of recursive template instantiation
  2010-02-18 13:30 [Bug c++/43113] New: " zsojka at seznam dot cz
@ 2010-02-18 14:19 ` paolo dot carlini at oracle dot com
  2010-02-20  0:36 ` manu at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-02-18 14:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from paolo dot carlini at oracle dot com  2010-02-18 14:18 -------


*** This bug has been marked as a duplicate of 9335 ***


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

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

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-43113-4@http.gcc.gnu.org/bugzilla/>
2014-05-20 16:06 ` [Bug c++/43113] too long diagnostics in some cases of recursive template instantiation manu at gcc dot gnu.org
2014-09-30 17:36 ` paolo.carlini at oracle dot com
2021-12-16 23:09 ` pinskia at gcc dot gnu.org
2010-02-18 13:30 [Bug c++/43113] New: " zsojka at seznam dot cz
2010-02-18 14:19 ` [Bug c++/43113] " paolo dot carlini at oracle dot com
2010-02-20  0:36 ` manu at gcc dot gnu dot org
2010-02-20  0:36 ` manu at gcc dot gnu dot org
2010-04-28  8:46 ` manu at gcc dot gnu dot 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).