public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/36460]  New: No space between >'s not always handled in C++0x
@ 2008-06-07 20:17 peterbindels at gmail dot com
  2008-06-07 20:22 ` [Bug c++/36460] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: peterbindels at gmail dot com @ 2008-06-07 20:17 UTC (permalink / raw)
  To: gcc-bugs

template <class a>
class A {};
template <class b>
class B {};

A<B<void()> > x;


If you leave out the space between the two >'s at the definition of x, it fails
to compile. As far as I'm aware this should work in C++0x mode. The compiler
was run with -std=c++0x.

candy@blackbox:~/atlantisos/kernel$ g++ -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ./configure --enable-languages=c,c++
Thread model: posix
gcc version 4.3.1 (GCC)
candy@blackbox:~/atlantisos/kernel$ uname -a
Linux blackbox 2.6.17.13 #12 SMP PREEMPT Fri Jun 22 23:13:07 CEST 2007 i686
Intel(R) Pentium(R) D  CPU 2.66GHz GenuineIntel GNU/Linux


-- 
           Summary: No space between >'s not always handled in C++0x
           Product: gcc
           Version: 4.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: peterbindels at gmail dot com
 GCC build triplet: i486-slackware-linux
  GCC host triplet: i486-slackware-linux
GCC target triplet: i586-pc-elf


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


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

* [Bug c++/36460] No space between >'s not always handled in C++0x
  2008-06-07 20:17 [Bug c++/36460] New: No space between >'s not always handled in C++0x peterbindels at gmail dot com
@ 2008-06-07 20:22 ` pinskia at gcc dot gnu dot org
  2008-06-18 21:50 ` hutchinsonandy at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-06-07 20:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-06-07 20:21 -------
Really this is why  think C++0x was wrong in thinking that >> can be used as ">
>" in the template context :).


-- 


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


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

* [Bug c++/36460] No space between >'s not always handled in C++0x
  2008-06-07 20:17 [Bug c++/36460] New: No space between >'s not always handled in C++0x peterbindels at gmail dot com
  2008-06-07 20:22 ` [Bug c++/36460] " pinskia at gcc dot gnu dot org
@ 2008-06-18 21:50 ` hutchinsonandy at gcc dot gnu dot org
  2008-08-06 11:46 ` peterbindels at gmail dot com
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hutchinsonandy at gcc dot gnu dot org @ 2008-06-18 21:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from hutchinsonandy at gcc dot gnu dot org  2008-06-18 21:49 -------
Subject: Bug 36460

Author: hutchinsonandy
Date: Wed Jun 18 21:48:50 2008
New Revision: 136919

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=136919
Log:
PR c/36460
* gcc.dg/utf32-1.c: Mark xfail for AVR target.
* gcc.dg/utf32-2.c: Ditto.
* gcc.dg/utf32-3.c: Ditto.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/utf32-1.c
    trunk/gcc/testsuite/gcc.dg/utf32-2.c
    trunk/gcc/testsuite/gcc.dg/utf32-3.c


-- 


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


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

* [Bug c++/36460] No space between >'s not always handled in C++0x
  2008-06-07 20:17 [Bug c++/36460] New: No space between >'s not always handled in C++0x peterbindels at gmail dot com
  2008-06-07 20:22 ` [Bug c++/36460] " pinskia at gcc dot gnu dot org
  2008-06-18 21:50 ` hutchinsonandy at gcc dot gnu dot org
@ 2008-08-06 11:46 ` peterbindels at gmail dot com
  2008-08-06 12:23 ` paolo dot carlini at oracle dot com
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: peterbindels at gmail dot com @ 2008-08-06 11:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from peterbindels at gmail dot com  2008-08-06 11:44 -------
Could anybody at least confirm this bug?


-- 


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


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

* [Bug c++/36460] No space between >'s not always handled in C++0x
  2008-06-07 20:17 [Bug c++/36460] New: No space between >'s not always handled in C++0x peterbindels at gmail dot com
                   ` (2 preceding siblings ...)
  2008-08-06 11:46 ` peterbindels at gmail dot com
@ 2008-08-06 12:23 ` paolo dot carlini at oracle dot com
  2008-08-06 13:50 ` dgregor at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-08-06 12:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from paolo dot carlini at oracle dot com  2008-08-06 12:22 -------
Let's ask Doug...

(by the way, Doug very kindly contributed these C++0x bits on a voluntary
basis. As a matter of courtesy, I would suggest avoiding words like "at least".
Thanks.) 


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |doug dot gregor at gmail dot
                   |                            |com


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


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

* [Bug c++/36460] No space between >'s not always handled in C++0x
  2008-06-07 20:17 [Bug c++/36460] New: No space between >'s not always handled in C++0x peterbindels at gmail dot com
                   ` (3 preceding siblings ...)
  2008-08-06 12:23 ` paolo dot carlini at oracle dot com
@ 2008-08-06 13:50 ` dgregor at gcc dot gnu dot org
  2008-08-06 14:31 ` dgregor at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dgregor at gcc dot gnu dot org @ 2008-08-06 13:50 UTC (permalink / raw)
  To: gcc-bugs



-- 

dgregor at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |dgregor at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-08-06 13:48:53
               date|                            |


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


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

* [Bug c++/36460] No space between >'s not always handled in C++0x
  2008-06-07 20:17 [Bug c++/36460] New: No space between >'s not always handled in C++0x peterbindels at gmail dot com
                   ` (4 preceding siblings ...)
  2008-08-06 13:50 ` dgregor at gcc dot gnu dot org
@ 2008-08-06 14:31 ` dgregor at gcc dot gnu dot org
  2008-08-06 19:10 ` dgregor at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dgregor at gcc dot gnu dot org @ 2008-08-06 14:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from dgregor at gcc dot gnu dot org  2008-08-06 14:30 -------
Patch here: http://gcc.gnu.org/ml/gcc-patches/2008-08/msg00382.html


-- 


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


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

* [Bug c++/36460] No space between >'s not always handled in C++0x
  2008-06-07 20:17 [Bug c++/36460] New: No space between >'s not always handled in C++0x peterbindels at gmail dot com
                   ` (5 preceding siblings ...)
  2008-08-06 14:31 ` dgregor at gcc dot gnu dot org
@ 2008-08-06 19:10 ` dgregor at gcc dot gnu dot org
  2008-08-06 19:13 ` dgregor at gcc dot gnu dot org
  2008-12-29  0:19 ` reichelt at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: dgregor at gcc dot gnu dot org @ 2008-08-06 19:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from dgregor at gcc dot gnu dot org  2008-08-06 19:09 -------
Subject: Bug 36460

Author: dgregor
Date: Wed Aug  6 19:08:12 2008
New Revision: 138819

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=138819
Log:
2008-08-06  Douglas Gregor  <doug.gregor@gmail.com>

       PR c++/36460
       * parser.c (cp_parser_template_argument): Don't assume that '>>'
       following a type-id is an error when in C++0x mode.

2008-08-06  Douglas Gregor  <doug.gregor@gmail.com>

       PR c++/36460
       * g++.dg/cpp0x/bracket3.C: Add another test case for the >>
       warning under -Wc++0x-compat.
       * g++.dg/cpp0x/bracket4.C: Add testcase for PR c++/36460.


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


-- 


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


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

* [Bug c++/36460] No space between >'s not always handled in C++0x
  2008-06-07 20:17 [Bug c++/36460] New: No space between >'s not always handled in C++0x peterbindels at gmail dot com
                   ` (6 preceding siblings ...)
  2008-08-06 19:10 ` dgregor at gcc dot gnu dot org
@ 2008-08-06 19:13 ` dgregor at gcc dot gnu dot org
  2008-12-29  0:19 ` reichelt at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: dgregor at gcc dot gnu dot org @ 2008-08-06 19:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from dgregor at gcc dot gnu dot org  2008-08-06 19:12 -------
Fixed on the trunk.


-- 

dgregor at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.4.0


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


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

* [Bug c++/36460] No space between >'s not always handled in C++0x
  2008-06-07 20:17 [Bug c++/36460] New: No space between >'s not always handled in C++0x peterbindels at gmail dot com
                   ` (7 preceding siblings ...)
  2008-08-06 19:13 ` dgregor at gcc dot gnu dot org
@ 2008-12-29  0:19 ` reichelt at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-12-29  0:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from reichelt at gcc dot gnu dot org  2008-12-29 00:16 -------
*** Bug 35497 has been marked as a duplicate of this bug. ***


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rodolfo at rodsoft dot org


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


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

end of thread, other threads:[~2008-12-29  0:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-07 20:17 [Bug c++/36460] New: No space between >'s not always handled in C++0x peterbindels at gmail dot com
2008-06-07 20:22 ` [Bug c++/36460] " pinskia at gcc dot gnu dot org
2008-06-18 21:50 ` hutchinsonandy at gcc dot gnu dot org
2008-08-06 11:46 ` peterbindels at gmail dot com
2008-08-06 12:23 ` paolo dot carlini at oracle dot com
2008-08-06 13:50 ` dgregor at gcc dot gnu dot org
2008-08-06 14:31 ` dgregor at gcc dot gnu dot org
2008-08-06 19:10 ` dgregor at gcc dot gnu dot org
2008-08-06 19:13 ` dgregor at gcc dot gnu dot org
2008-12-29  0:19 ` reichelt 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).