public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/44358]  New: initializer list can't convert to map
@ 2010-06-01  6:49 jarrydb at cse dot unsw dot edu dot au
  2010-06-01  6:50 ` [Bug c++/44358] " jarrydb at cse dot unsw dot edu dot au
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: jarrydb at cse dot unsw dot edu dot au @ 2010-06-01  6:49 UTC (permalink / raw)
  To: gcc-bugs

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

Configured with: ../gcc-svn/configure --prefix=/home/jarryd/local/gcc-4.6
--enable-languages=c,c++

g++ init_list.cpp -o init_list.o -std=gnu++0x -c -save-temps

init_list.cpp: In function ‘int main()’:
init_list.cpp:5:41: error: could not convert ‘{{1, 1}, {2, 2}}’ to
‘std::map<int, int>’


-- 
           Summary: initializer list can't convert to map
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jarrydb at cse dot unsw dot edu dot au
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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

* [Bug c++/44358] initializer list can't convert to map
  2010-06-01  6:49 [Bug c++/44358] New: initializer list can't convert to map jarrydb at cse dot unsw dot edu dot au
@ 2010-06-01  6:50 ` jarrydb at cse dot unsw dot edu dot au
  2010-06-01  8:47 ` [Bug c++/44358] [C++0x] " paolo dot carlini at oracle dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jarrydb at cse dot unsw dot edu dot au @ 2010-06-01  6:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jarrydb at cse dot unsw dot edu dot au  2010-06-01 06:50 -------
Created an attachment (id=20790)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20790&action=view)
compilation failure

note that this file is the result of:

#include <map>

int main()
{
  std::map<int, int> x = {{1, 1}, {2, 2}};
  return 0;
}


-- 


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


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

* [Bug c++/44358] [C++0x] initializer list can't convert to map
  2010-06-01  6:49 [Bug c++/44358] New: initializer list can't convert to map jarrydb at cse dot unsw dot edu dot au
  2010-06-01  6:50 ` [Bug c++/44358] " jarrydb at cse dot unsw dot edu dot au
@ 2010-06-01  8:47 ` paolo dot carlini at oracle dot com
  2010-06-01 23:02 ` jason at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-06-01  8:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from paolo dot carlini at oracle dot com  2010-06-01 08:47 -------
Jason, can you have a look to this?


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu dot org
            Summary|initializer list can't      |[C++0x] initializer list
                   |convert to map              |can't convert to map


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


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

* [Bug c++/44358] [C++0x] initializer list can't convert to map
  2010-06-01  6:49 [Bug c++/44358] New: initializer list can't convert to map jarrydb at cse dot unsw dot edu dot au
  2010-06-01  6:50 ` [Bug c++/44358] " jarrydb at cse dot unsw dot edu dot au
  2010-06-01  8:47 ` [Bug c++/44358] [C++0x] " paolo dot carlini at oracle dot com
@ 2010-06-01 23:02 ` jason at gcc dot gnu dot org
  2010-06-02  3:55 ` jason at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-06-01 23:02 UTC (permalink / raw)
  To: gcc-bugs



-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jason at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-06-01 23:01:55
               date|                            |


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


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

* [Bug c++/44358] [C++0x] initializer list can't convert to map
  2010-06-01  6:49 [Bug c++/44358] New: initializer list can't convert to map jarrydb at cse dot unsw dot edu dot au
                   ` (2 preceding siblings ...)
  2010-06-01 23:02 ` jason at gcc dot gnu dot org
@ 2010-06-02  3:55 ` jason at gcc dot gnu dot org
  2010-06-02  5:39 ` jason at gcc dot gnu dot org
  2010-06-02 19:34 ` jason at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-06-02  3:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jason at gcc dot gnu dot org  2010-06-02 03:55 -------
Subject: Bug 44358

Author: jason
Date: Wed Jun  2 03:55:28 2010
New Revision: 160131

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160131
Log:
        PR c++/44358
        * call.c (build_list_conv): Set list-initialization flags properly.

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


-- 


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


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

* [Bug c++/44358] [C++0x] initializer list can't convert to map
  2010-06-01  6:49 [Bug c++/44358] New: initializer list can't convert to map jarrydb at cse dot unsw dot edu dot au
                   ` (3 preceding siblings ...)
  2010-06-02  3:55 ` jason at gcc dot gnu dot org
@ 2010-06-02  5:39 ` jason at gcc dot gnu dot org
  2010-06-02 19:34 ` jason at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-06-02  5:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jason at gcc dot gnu dot org  2010-06-02 05:39 -------
Subject: Bug 44358

Author: jason
Date: Wed Jun  2 05:39:23 2010
New Revision: 160137

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160137
Log:
        PR c++/44358
        * call.c (build_list_conv): Set list-initialization flags properly.

Added:
    branches/gcc-4_5-branch/gcc/testsuite/g++.dg/cpp0x/initlist36.C
Modified:
    branches/gcc-4_5-branch/gcc/cp/ChangeLog
    branches/gcc-4_5-branch/gcc/cp/call.c
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/44358] [C++0x] initializer list can't convert to map
  2010-06-01  6:49 [Bug c++/44358] New: initializer list can't convert to map jarrydb at cse dot unsw dot edu dot au
                   ` (4 preceding siblings ...)
  2010-06-02  5:39 ` jason at gcc dot gnu dot org
@ 2010-06-02 19:34 ` jason at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-06-02 19:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jason at gcc dot gnu dot org  2010-06-02 19:34 -------
Fixed for 4.5.1.


-- 

jason at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2010-06-02 19:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-01  6:49 [Bug c++/44358] New: initializer list can't convert to map jarrydb at cse dot unsw dot edu dot au
2010-06-01  6:50 ` [Bug c++/44358] " jarrydb at cse dot unsw dot edu dot au
2010-06-01  8:47 ` [Bug c++/44358] [C++0x] " paolo dot carlini at oracle dot com
2010-06-01 23:02 ` jason at gcc dot gnu dot org
2010-06-02  3:55 ` jason at gcc dot gnu dot org
2010-06-02  5:39 ` jason at gcc dot gnu dot org
2010-06-02 19:34 ` jason 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).