public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/61260] Issue with instantiates of variadic templates inside other templates (possibly name lookup problem)
  2014-05-20 23:31 [Bug c++/61260] New: Issue with instantiates of variadic templates inside other templates (possibly name lookup problem) delong.j at fb dot com
@ 2014-05-20 23:31 ` delong.j at fb dot com
  2014-12-14 14:23 ` ville.voutilainen at gmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: delong.j at fb dot com @ 2014-05-20 23:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jordan DeLong <delong.j at fb dot com> ---
The original error.cc compiles on clang and icc.


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

* [Bug c++/61260] New: Issue with instantiates of variadic templates inside other templates (possibly name lookup problem)
@ 2014-05-20 23:31 delong.j at fb dot com
  2014-05-20 23:31 ` [Bug c++/61260] " delong.j at fb dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: delong.j at fb dot com @ 2014-05-20 23:31 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 3247 bytes --]

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

            Bug ID: 61260
           Summary: Issue with instantiates of variadic templates inside
                    other templates (possibly name lookup problem)
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: delong.j at fb dot com

Created attachment 32833
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32833&action=edit
Example source snippets

Calling a variadic function template that returns an instantiation of a
variadic class template seems to sometimes incorrectly fail to find member
functions of the class.

In the attached, error.cc says:

  error: ‘Hey::str() [with Blah = {const char (&)[7], const char*&};
std::string = std::basic_string]’ is not a member of ‘Hey’

Modifying it to fixed.cc compiles.

If you make the strings the same length in the ternary operator, it also
compiles.  (fixed2.cc.)

Turning the struct "A" into a non-template also leads to it compiling
(fixed3.cc).
>From gcc-bugs-return-452097-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed May 21 00:29:55 2014
Return-Path: <gcc-bugs-return-452097-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18093 invoked by alias); 21 May 2014 00:29:55 -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 18056 invoked by uid 48); 21 May 2014 00:29:51 -0000
From: "eggert at gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/56955] documentation for attribute malloc contradicts itself
Date: Wed, 21 May 2014 00:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: eggert at gnu dot org
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: attachments.created
Message-ID: <bug-56955-4-LSiguS5sOQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56955-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56955-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/msg01789.txt.bz2
Content-length: 279

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

--- Comment #11 from Paul Eggert <eggert at gnu dot org> ---
Created attachment 32834
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id2834&actioníit
Sample illustrating GCC's optimization with __attribute__ ((malloc))


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

* [Bug c++/61260] Issue with instantiates of variadic templates inside other templates (possibly name lookup problem)
  2014-05-20 23:31 [Bug c++/61260] New: Issue with instantiates of variadic templates inside other templates (possibly name lookup problem) delong.j at fb dot com
  2014-05-20 23:31 ` [Bug c++/61260] " delong.j at fb dot com
@ 2014-12-14 14:23 ` ville.voutilainen at gmail dot com
  2021-08-05  7:13 ` pinskia at gcc dot gnu.org
  2021-08-05  7:13 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: ville.voutilainen at gmail dot com @ 2014-12-14 14:23 UTC (permalink / raw)
  To: gcc-bugs

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

Ville Voutilainen <ville.voutilainen at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-12-14
                 CC|                            |ville.voutilainen at gmail dot com
     Ever confirmed|0                           |1
      Known to fail|                            |4.8.2, 4.9.1, 5.0

--- Comment #2 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
Clang accepts the code.


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

* [Bug c++/61260] Issue with instantiates of variadic templates inside other templates (possibly name lookup problem)
  2014-05-20 23:31 [Bug c++/61260] New: Issue with instantiates of variadic templates inside other templates (possibly name lookup problem) delong.j at fb dot com
  2014-05-20 23:31 ` [Bug c++/61260] " delong.j at fb dot com
  2014-12-14 14:23 ` ville.voutilainen at gmail dot com
@ 2021-08-05  7:13 ` pinskia at gcc dot gnu.org
  2021-08-05  7:13 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-05  7:13 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |8.1.0
   Target Milestone|---                         |8.0
      Known to fail|                            |7.5.0

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is fixed in GCC 8+.

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

* [Bug c++/61260] Issue with instantiates of variadic templates inside other templates (possibly name lookup problem)
  2014-05-20 23:31 [Bug c++/61260] New: Issue with instantiates of variadic templates inside other templates (possibly name lookup problem) delong.j at fb dot com
                   ` (2 preceding siblings ...)
  2021-08-05  7:13 ` pinskia at gcc dot gnu.org
@ 2021-08-05  7:13 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-05  7:13 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
.

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

end of thread, other threads:[~2021-08-05  7:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-20 23:31 [Bug c++/61260] New: Issue with instantiates of variadic templates inside other templates (possibly name lookup problem) delong.j at fb dot com
2014-05-20 23:31 ` [Bug c++/61260] " delong.j at fb dot com
2014-12-14 14:23 ` ville.voutilainen at gmail dot com
2021-08-05  7:13 ` pinskia at gcc dot gnu.org
2021-08-05  7:13 ` 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).