public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/53494] New: initializer lists in array type
@ 2012-05-26  9:40 marcus-yass at ihug dot co.nz
  2012-05-26 10:10 ` [Bug c++/53494] " paolo.carlini at oracle dot com
                   ` (27 more replies)
  0 siblings, 28 replies; 29+ messages in thread
From: marcus-yass at ihug dot co.nz @ 2012-05-26  9:40 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53494
           Summary: initializer lists in array type
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: marcus-yass@ihug.co.nz


Created attachment 27502
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27502
preprocessed source for failed compile

g++-4.7 -std=c++11 1.cpp -o e1

1.cpp:
#include <iostream>
#include <utility>
#include <array>
using namespace std;

array<pair<string, unsigned> const, 1> const matchSynonyms{ {"smile",1} };

int main(int argc, char **argv){
    cout<<"success"<<endl;
}

leads to output:

"
‘
/home/mako/programming/cing/1.cpp:6: confused by earlier errors, bailing out
Preprocessed source stored into /tmp/ccTX9zYB.out file, please attach this to
your bugreport.
"


I also get problems when I try to use a vector instead of a pair, but the
errors are a lot longer and confusing and it's harder to rule out user error.


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

end of thread, other threads:[~2012-08-06 15:42 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-26  9:40 [Bug c++/53494] New: initializer lists in array type marcus-yass at ihug dot co.nz
2012-05-26 10:10 ` [Bug c++/53494] " paolo.carlini at oracle dot com
2012-05-26 14:54 ` redi at gcc dot gnu.org
2012-05-26 15:16 ` [Bug c++/53494] [4.7/4.8 Regression] ICE with invalid initializer list redi at gcc dot gnu.org
2012-05-26 17:06 ` paolo.carlini at oracle dot com
2012-05-26 20:32 ` marcus-yass at ihug dot co.nz
2012-05-26 21:13 ` paolo.carlini at oracle dot com
2012-05-26 21:47 ` marcus-yass at ihug dot co.nz
2012-05-28 16:17 ` paolo.carlini at oracle dot com
2012-05-28 16:25 ` redi at gcc dot gnu.org
2012-05-28 16:27 ` redi at gcc dot gnu.org
2012-05-28 16:32 ` paolo.carlini at oracle dot com
2012-05-28 16:41 ` paolo.carlini at oracle dot com
2012-05-28 21:42 ` marcus-yass at ihug dot co.nz
2012-05-29 10:29 ` rguenth at gcc dot gnu.org
2012-05-29 14:22 ` rguenth at gcc dot gnu.org
2012-05-29 22:14 ` daniel.kruegler at googlemail dot com
2012-05-29 22:33 ` paolo.carlini at oracle dot com
2012-05-29 23:15 ` paolo.carlini at oracle dot com
2012-05-29 23:36 ` redi at gcc dot gnu.org
2012-05-29 23:45 ` redi at gcc dot gnu.org
2012-05-30  6:47 ` daniel.kruegler at googlemail dot com
2012-05-30  8:31 ` redi at gcc dot gnu.org
2012-05-30  9:12 ` paolo.carlini at oracle dot com
2012-06-08  9:21 ` paolo.carlini at oracle dot com
2012-06-08  9:27 ` paolo.carlini at oracle dot com
2012-06-14  8:19 ` rguenth at gcc dot gnu.org
2012-08-06 11:58 ` paolo.carlini at oracle dot com
2012-08-06 15:42 ` 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).