public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "doko at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/65284] New: [5 Regression] ICE (segfault) on arm-linux-gnueabihf Date: Mon, 02 Mar 2015 22:05:00 -0000 [thread overview] Message-ID: <bug-65284-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65284 Bug ID: 65284 Summary: [5 Regression] ICE (segfault) on arm-linux-gnueabihf Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: doko at gcc dot gnu.org r221115 on arm-linux-gnueabihf $ g++ -std=c++11 -c -O2 schema-parser.ii schema-parser.ii: In member function 'Maybe<ParsedSchema> ParsedSchema::findNested() const': schema-parser.ii:45:21: internal compiler error: Segmentation fault Maybe<ParsedSchema> ParsedSchema::findNested() const { ^ Please submit a full bug report, with preprocessed source if appropriate. $ gdb --args /usr/lib/gcc/arm-linux-gnueabihf/5/cc1plus -fpreprocessed schema-parser.ii -quiet -dumpbase schema-parser.ii -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -mthumb -mtls-dialect=gnu -auxbase schema-parser -O2 -std=c++11 -version -fstack-protector-strong -Wformat -Wformat-security -o /tmp/ccABpp5w.s (gdb) bt #0 0x00346d52 in maybe_canonicalize_mem_ref_addr(tree_node**) () #1 0x0034ee4c in fold_stmt_1(gimple_stmt_iterator*, bool, tree_node* (*)(tree_node*)) () #2 0x0053bb56 in (anonymous namespace)::pass_forwprop::execute(function*) () #3 0x00434e5e in execute_one_pass(opt_pass*) () #4 0x00435148 in execute_pass_list_1(opt_pass*) [clone .constprop.59] () #5 0x00435152 in execute_pass_list_1(opt_pass*) [clone .constprop.59] () #6 0x00435180 in execute_pass_list(function*, opt_pass*) () #7 0x00298eb6 in cgraph_node::expand() () #8 0x0029a93c in symbol_table::compile() [clone .part.42] () #9 0x0029ab78 in symbol_table::finalize_compilation_unit() () #10 0x001a34e4 in cp_write_global_declarations() () #11 0x004aa082 in compile_file() () #12 0x001571a6 in toplev::main(int, char**) () #13 0x00157bf4 in main () $ cat schema-parser.ii namespace _ { template <typename T> class NullableValue { public: T operator*(); NullableValue(T); }; } template <typename T> class Maybe { public: Maybe(T t) : ptr(t) {} template <typename Func> auto map(Func f) -> Maybe<decltype(f(T()))> { return f(*ptr); } _::NullableValue<T> ptr; }; template <typename T> class A { public: T *operator->(); }; typedef int uint64_t; class B { public: long getId(); }; class C { struct D; A<D> impl; friend class ParsedSchema; }; class ParsedSchema { Maybe<ParsedSchema> findNested() const; ParsedSchema(ParsedSchema, C); C *parser; B getProto() const; int raw; }; class F { public: Maybe<uint64_t> lookup(uint64_t, int); ParsedSchema get(uint64_t); }; struct C::D { F compiler; }; Maybe<ParsedSchema> ParsedSchema::findNested() const { int name; parser->impl->compiler.lookup(getProto().getId(), name) .map([this](uint64_t childId) { return ParsedSchema(parser->impl->compiler.get(childId), *parser); }); }
next reply other threads:[~2015-03-02 22:05 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-03-02 22:05 doko at gcc dot gnu.org [this message] 2015-03-03 10:01 ` [Bug c++/65284] " rguenth at gcc dot gnu.org 2015-03-03 19:06 ` doko at gcc dot gnu.org 2015-03-04 16:34 ` aldyh at gcc dot gnu.org 2015-03-04 19:54 ` aldyh at gcc dot gnu.org 2015-03-04 23:19 ` aldyh at gcc dot gnu.org 2015-03-05 2:46 ` aldyh at gcc dot gnu.org 2015-03-06 22:44 ` [Bug c++/65284] [5 Regression] C++ lambda and auto return value causes ICE or gimple error aldyh at gcc dot gnu.org 2015-03-09 9:13 ` ramana at gcc dot gnu.org 2015-03-09 20:36 ` aldyh at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-65284-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).