public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56462] New: Simple use of auto in template function causes internal error in type_unification_real
@ 2013-02-26 16:06 spraff at gmail dot com
2013-02-26 16:28 ` [Bug c++/56462] " redi at gcc dot gnu.org
2013-02-27 9:52 ` paolo.carlini at oracle dot com
0 siblings, 2 replies; 3+ messages in thread
From: spraff at gmail dot com @ 2013-02-26 16:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56462
Bug #: 56462
Summary: Simple use of auto in template function causes
internal error in type_unification_real
Classification: Unclassified
Product: gcc
Version: 4.5.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: spraff@gmail.com
Here is a complete source file which causes the error
*********************************************
template <typename F>
void foo (F & f)
{
auto f_copy = *f;
}
*********************************************
Compiling this on ubuntu 12.04 with
g++ test.cpp -std=c++0x
yields the following error
test.cpp: In function ‘void foo(F&)’:
test.cpp:4:17: internal compiler error: in type_unification_real, at
cp/pt.c:13573
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/56462] Simple use of auto in template function causes internal error in type_unification_real
2013-02-26 16:06 [Bug c++/56462] New: Simple use of auto in template function causes internal error in type_unification_real spraff at gmail dot com
@ 2013-02-26 16:28 ` redi at gcc dot gnu.org
2013-02-27 9:52 ` paolo.carlini at oracle dot com
1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2013-02-26 16:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56462
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Known to work| |4.7.2, 4.8.0
Known to fail| |4.6.3
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-02-26 16:27:51 UTC ---
G++ 4.5 is no longer supported or maintained, for experimental C++11 features
you should really try a current release. This works fine with 4.7 or trunk.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/56462] Simple use of auto in template function causes internal error in type_unification_real
2013-02-26 16:06 [Bug c++/56462] New: Simple use of auto in template function causes internal error in type_unification_real spraff at gmail dot com
2013-02-26 16:28 ` [Bug c++/56462] " redi at gcc dot gnu.org
@ 2013-02-27 9:52 ` paolo.carlini at oracle dot com
1 sibling, 0 replies; 3+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-02-27 9:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56462
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |WORKSFORME
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-02-27 09:52:35 UTC ---
I guess we can safely close it then.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-02-27 9:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-26 16:06 [Bug c++/56462] New: Simple use of auto in template function causes internal error in type_unification_real spraff at gmail dot com
2013-02-26 16:28 ` [Bug c++/56462] " redi at gcc dot gnu.org
2013-02-27 9:52 ` 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).