public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "lc289dafd7ybme05se at softbank dot ne.jp" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61135] It seems to be not able to call virtual method of literal object in lambda expression Date: Sun, 19 Apr 2015 00:13:00 -0000 [thread overview] Message-ID: <bug-61135-4-Wq53k9ouYb@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-61135-4@http.gcc.gnu.org/bugzilla/> [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 7624 bytes --] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61135 lc289dafd7ybme05se at softbank dot ne.jp changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lc289dafd7ybme05se@softbank | |.ne.jp --- Comment #6 from lc289dafd7ybme05se at softbank dot ne.jp --- below also doesn't work struct A { int funcA(){return 0;} }; template<class> struct B:virtual public A{ void funcB(){ [a=this->funcA()]{}; } }; int main() { B<A> b; b.funcB(); return 0; } //g++ 4.9.2 g++ -std=c++14 hd.cpp hd.cpp: In instantiation of âvoid B< <template-parameter-1-1> >::funcB() [with <template-parameter-1-1> = A]â: hd.cpp:15:10: required from here hd.cpp:9:2: internal compiler error: in cp_genericize_r, at cp/cp-gimplify.c:1175 } ^ >From gcc-bugs-return-483992-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Apr 19 00:30:10 2015 Return-Path: <gcc-bugs-return-483992-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 75921 invoked by alias); 19 Apr 2015 00:30:09 -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 75864 invoked by uid 48); 19 Apr 2015 00:30:06 -0000 From: "lc289dafd7ybme05se at softbank dot ne.jp" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61135] It seems to be not able to call virtual method of literal object in lambda expression Date: Sun, 19 Apr 2015 00:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.8.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: lc289dafd7ybme05se at softbank dot ne.jp X-Bugzilla-Status: NEW 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: Message-ID: <bug-61135-4-PJIJiWjj8C@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-61135-4@http.gcc.gnu.org/bugzilla/> References: <bug-61135-4@http.gcc.gnu.org/bugzilla/> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-04/txt/msg01544.txt.bz2 Content-length: 304 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61135 --- Comment #7 from lc289dafd7ybme05se at softbank dot ne.jp --- ä»®æ³ç¶æ¿ã®æãã¨ã©ã¼ã«ãªãã¿ããã§ããã >From gcc-bugs-return-483993-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Apr 19 04:46:20 2015 Return-Path: <gcc-bugs-return-483993-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 23296 invoked by alias); 19 Apr 2015 04:46:18 -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 23274 invoked by uid 48); 19 Apr 2015 04:46:12 -0000 From: "gang.chen.5i5j at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/65804] New: blackfin: Not support global frame pointer with -fno-omit-frame-pointer Date: Sun, 19 Apr 2015 04:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gang.chen.5i5j at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: <bug-65804-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-04/txt/msg01545.txt.bz2 Content-length: 2801 https://gcc.gnu.org/bugzilla/show_bug.cgi?ide804 Bug ID: 65804 Summary: blackfin: Not support global frame pointer with -fno-omit-frame-pointer Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: gang.chen.5i5j at gmail dot com The code: [root@localhost gcc]# cat stacktrace.i register unsigned long current_frame_pointer asm("FP"); void save_stack_trace(void) { unsigned long fp; fp = current_frame_pointer; } For gcc5 from upstream (cause issue): [root@localhost gcc]# /upstream/release-blackfin/bin/bfin-gchen-elf-gcc -mcpu¿533-0.3 -fno-omit-frame-pointer -pg -c stacktrace.i stacktrace.i: In function 'save_stack_trace': stacktrace.i:3:6: error: frame pointer required, but reserved void save_stack_trace(void) ^ stacktrace.i:1:24: note: for 'current_frame_pointer' register unsigned long current_frame_pointer asm("FP"); ^ [root@localhost linux-next]# /upstream/release-blackfin/bin/bfin-gchen-elf-gcc -v Using built-in specs. COLLECT_GCC=/upstream/release-blackfin/bin/bfin-gchen-elf-gcc COLLECT_LTO_WRAPPER=/upstream/release-blackfin/libexec/gcc/bfin-gchen-elf/5.0.0/lto-wrapper Target: bfin-gchen-elf Configured with: ../gcc-blackfin/configure --target¿in-gchen-elf --disable-nls --disable-threads --disable-shared --disable-libquadmath --disable-libgomp --disable-libatomic --prefix=/upstream/release-blackfin --without-headers target_alias¿in-gchen-elf --enable-languages=c Thread model: single gcc version 5.0.0 20150401 (experimental) (GCC) For blackfin gcc4.5.4 from soureforge (no issue): root@gchen:/upstream/linux-next# /3p/release-blackfin/bin/bfin-gchen-elf-gcc -mcpu¿533-0.3 -fno-omit-frame-pointer -pg -c stacktrace.i root@gchen:/upstream/linux-next# /3p/release-blackfin/bin/bfin-gchen-elf-gcc -v Using built-in specs. COLLECT_GCC=/3p/release-blackfin/bin/bfin-gchen-elf-gcc COLLECT_LTO_WRAPPER=/3p/release-blackfin/libexec/gcc/bfin-gchen-elf/4.5.4/lto-wrapper Target: bfin-gchen-elf Configured with: ../gcc/configure --target¿in-gchen-elf --disable-nls --disable-threads --disable-shared --disable-libssp --disable-libquadmath --disable-libgomp --disable-libatomic --prefix=/upstream/release-blackfin --without-headers --enable-languages=c : (reconfigured) ../gcc/configure --target¿in-gchen-elf --disable-nls --disable-threads --disable-shared --disable-libssp --disable-libquadmath --disable-libgomp --disable-libatomic --prefix=/3p/release-blackfin --without-headers --enable-languages=c Thread model: single gcc version 4.5.4 (GCC)
next prev parent reply other threads:[~2015-04-19 0:13 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-05-10 4:52 [Bug c++/61135] New: " okamoto6496 at gmail dot com 2014-05-10 4:54 ` [Bug c++/61135] " okamoto6496 at gmail dot com 2014-05-10 5:00 ` okamoto6496 at gmail dot com 2014-05-10 8:56 ` paolo.carlini at oracle dot com 2014-05-10 20:32 ` daniel.kruegler at googlemail dot com 2015-01-02 2:41 ` dtemirbulatov at gmail dot com 2015-04-19 0:13 ` lc289dafd7ybme05se at softbank dot ne.jp [this message] 2015-04-19 8:10 ` ubizjak at gmail dot com
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-61135-4-Wq53k9ouYb@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).