/*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

Reply via email to