public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/42567]  New: internal compiler error: in type_unification_real, at cp/pt.c:13310
@ 2009-12-31 19:17 smm2rc at Virginia dot EDU
  2009-12-31 19:22 ` [Bug c++/42567] " smm2rc at Virginia dot EDU
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: smm2rc at Virginia dot EDU @ 2009-12-31 19:17 UTC (permalink / raw)
  To: gcc-bugs

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

/*To start off, I apologize if this bug already was reported (I didn't find it
mentioned anywhere...). Also, what exactly is meant by 'host triplet', 'target
triplet', and 'build triplet'? (I just sort of guessed at them - I'm assuming
they're the host system and the target system and the system on which the
compiler was built...??) */

/* Simplified test case code (located in main.cpp): */

template<typename B>
class A {
public:
        template<typename C>
        void fn(C c) {
                auto&& key = *c; /* same bug results if 'auto&&' is replaced
with 'auto&' */
        }
};

int main(int argc, char* argv[]) {}

/* Errors produced:
main.cpp: In member function ‘void A<B>::fn(C)’:
main.cpp:6:17: internal compiler error: in type_unification_real, at
cp/pt.c:13310
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
*/
/* The following is the command used to compile the code:
g++ -std=c++0x main.cpp
*/
/* System specs:
Ubuntu 9.10 32-bit, Intel P9500,
--> GCC 4.5.0 (built from source, revision 155485) <--
*/
/* Comments: Buh whuh? */


-- 
           Summary: internal compiler error: in type_unification_real, at
                    cp/pt.c:13310
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: smm2rc at Virginia dot EDU
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

end of thread, other threads:[~2010-01-04 17:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-31 19:17 [Bug c++/42567] New: internal compiler error: in type_unification_real, at cp/pt.c:13310 smm2rc at Virginia dot EDU
2009-12-31 19:22 ` [Bug c++/42567] " smm2rc at Virginia dot EDU
2009-12-31 20:21 ` [Bug c++/42567] [C++0x] " paolo dot carlini at oracle dot com
2010-01-04 17:53 ` [Bug c++/42567] [C++0x] ICE with auto " jason at gcc dot gnu dot org
2010-01-04 17:56 ` jason at gcc dot gnu dot org
2010-01-04 17:56 ` 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).