public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/67318] New: [6 regression] Parsing error when using abbreviated integral type names in template parameter pack declaration
@ 2015-08-22  9:40 adrian.wielgosik at gmail dot com
  2015-08-22 22:51 ` [Bug c++/67318] " redi at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: adrian.wielgosik at gmail dot com @ 2015-08-22  9:40 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 67318
           Summary: [6 regression] Parsing error when using abbreviated
                    integral type names in template parameter pack
                    declaration
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: adrian.wielgosik at gmail dot com
  Target Milestone: ---

The following code:

template<short...>
struct MyStruct;

int main(){}

Results in an error:

main.cpp:16:15: error: expected ‘>’ before ‘...’ token
 template<short...>
               ^

Happens for: short, long, long long, unsigned, signed, unsigned short...
Does not happen for: all the above with "int" appended, int, char, bool.
>From gcc-bugs-return-495400-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 22 10:37:48 2015
Return-Path: <gcc-bugs-return-495400-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33055 invoked by alias); 22 Aug 2015 10:37:47 -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 32984 invoked by uid 48); 22 Aug 2015 10:37:43 -0000
From: "Joost.VandeVondele at mat dot ethz.ch" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/66761] libgomp: ThreadSanitizer: data race in libgomp
Date: Sat, 22 Aug 2015 10:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libgomp
X-Bugzilla-Version: 5.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: Joost.VandeVondele at mat dot ethz.ch
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
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: bug_file_loc cc
Message-ID: <bug-66761-4-BoUQTLykKu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66761-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66761-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-08/txt/msg01542.txt.bz2
Content-length: 751

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

Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |https://gcc.gnu.org/ml/gcc-
                   |                            |patches/2015-08/msg01357.ht
                   |                            |ml
                 CC|                            |Joost.VandeVondele at mat dot ethz
                   |                            |.ch

--- Comment #1 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> ---
patch posted https://gcc.gnu.org/ml/gcc-patches/2015-08/msg01357.html


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

* [Bug c++/67318] [6 regression] Parsing error when using abbreviated integral type names in template parameter pack declaration
  2015-08-22  9:40 [Bug c++/67318] New: [6 regression] Parsing error when using abbreviated integral type names in template parameter pack declaration adrian.wielgosik at gmail dot com
@ 2015-08-22 22:51 ` redi at gcc dot gnu.org
  2015-08-25  8:47 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2015-08-22 22:51 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-08-22
      Known to work|                            |4.9.3, 5.2.0
     Ever confirmed|0                           |1
      Known to fail|                            |6.0


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

* [Bug c++/67318] [6 regression] Parsing error when using abbreviated integral type names in template parameter pack declaration
  2015-08-22  9:40 [Bug c++/67318] New: [6 regression] Parsing error when using abbreviated integral type names in template parameter pack declaration adrian.wielgosik at gmail dot com
  2015-08-22 22:51 ` [Bug c++/67318] " redi at gcc dot gnu.org
@ 2015-08-25  8:47 ` rguenth at gcc dot gnu.org
  2015-09-08 19:51 ` paolo.carlini at oracle dot com
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-08-25  8:47 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |6.0


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

* [Bug c++/67318] [6 regression] Parsing error when using abbreviated integral type names in template parameter pack declaration
  2015-08-22  9:40 [Bug c++/67318] New: [6 regression] Parsing error when using abbreviated integral type names in template parameter pack declaration adrian.wielgosik at gmail dot com
  2015-08-22 22:51 ` [Bug c++/67318] " redi at gcc dot gnu.org
  2015-08-25  8:47 ` rguenth at gcc dot gnu.org
@ 2015-09-08 19:51 ` paolo.carlini at oracle dot com
  2015-09-09 10:48 ` paolo.carlini at oracle dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-09-08 19:51 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Regressed in r225621.


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

* [Bug c++/67318] [6 regression] Parsing error when using abbreviated integral type names in template parameter pack declaration
  2015-08-22  9:40 [Bug c++/67318] New: [6 regression] Parsing error when using abbreviated integral type names in template parameter pack declaration adrian.wielgosik at gmail dot com
                   ` (2 preceding siblings ...)
  2015-09-08 19:51 ` paolo.carlini at oracle dot com
@ 2015-09-09 10:48 ` paolo.carlini at oracle dot com
  2015-09-09 10:49 ` paolo.carlini at oracle dot com
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-09-09 10:48 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |paolo.carlini at oracle dot com

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
I think I know what's going wrong: r225621 cleaned up a little too much, and we
aren't consuming the ellipsis. I'm testing the attached.


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

* [Bug c++/67318] [6 regression] Parsing error when using abbreviated integral type names in template parameter pack declaration
  2015-08-22  9:40 [Bug c++/67318] New: [6 regression] Parsing error when using abbreviated integral type names in template parameter pack declaration adrian.wielgosik at gmail dot com
                   ` (3 preceding siblings ...)
  2015-09-09 10:48 ` paolo.carlini at oracle dot com
@ 2015-09-09 10:49 ` paolo.carlini at oracle dot com
  2015-09-10 15:37 ` paolo at gcc dot gnu.org
  2015-09-10 15:38 ` paolo.carlini at oracle dot com
  6 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-09-09 10:49 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Created attachment 36310
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36310&action=edit
Draft


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

* [Bug c++/67318] [6 regression] Parsing error when using abbreviated integral type names in template parameter pack declaration
  2015-08-22  9:40 [Bug c++/67318] New: [6 regression] Parsing error when using abbreviated integral type names in template parameter pack declaration adrian.wielgosik at gmail dot com
                   ` (4 preceding siblings ...)
  2015-09-09 10:49 ` paolo.carlini at oracle dot com
@ 2015-09-10 15:37 ` paolo at gcc dot gnu.org
  2015-09-10 15:38 ` paolo.carlini at oracle dot com
  6 siblings, 0 replies; 8+ messages in thread
From: paolo at gcc dot gnu.org @ 2015-09-10 15:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Thu Sep 10 15:36:54 2015
New Revision: 227650

URL: https://gcc.gnu.org/viewcvs?rev=227650&root=gcc&view=rev
Log:
/cp
2015-09-10  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/67318
        * parser.c (cp_parser_parameter_declaration): Consume the ellipsis
        and set template_parameter_pack_p also when the type is null.

/testsuite
2015-09-10  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/67318
        * g++.dg/cpp0x/variadic166.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/variadic166.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/67318] [6 regression] Parsing error when using abbreviated integral type names in template parameter pack declaration
  2015-08-22  9:40 [Bug c++/67318] New: [6 regression] Parsing error when using abbreviated integral type names in template parameter pack declaration adrian.wielgosik at gmail dot com
                   ` (5 preceding siblings ...)
  2015-09-10 15:37 ` paolo at gcc dot gnu.org
@ 2015-09-10 15:38 ` paolo.carlini at oracle dot com
  6 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-09-10 15:38 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
           Assignee|paolo.carlini at oracle dot com    |unassigned at gcc dot gnu.org

--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed.


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

end of thread, other threads:[~2015-09-10 15:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-22  9:40 [Bug c++/67318] New: [6 regression] Parsing error when using abbreviated integral type names in template parameter pack declaration adrian.wielgosik at gmail dot com
2015-08-22 22:51 ` [Bug c++/67318] " redi at gcc dot gnu.org
2015-08-25  8:47 ` rguenth at gcc dot gnu.org
2015-09-08 19:51 ` paolo.carlini at oracle dot com
2015-09-09 10:48 ` paolo.carlini at oracle dot com
2015-09-09 10:49 ` paolo.carlini at oracle dot com
2015-09-10 15:37 ` paolo at gcc dot gnu.org
2015-09-10 15:38 ` paolo.carlini at oracle dot com

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