Commit 9a789d73 by Jason Merrill

varasm.c (globalize_decl): New fn.

        * varasm.c (globalize_decl): New fn.
        (assemble_start_function): Use it.
        (asm_emit_uninitialized): Use it.
        (assemble_alias): Use it.
        (assemble_variable): Use it.

From-SVN: r50738
parent 19c5b1cf
#include "comdat3.h"
void f ()
{
const bool *p = &A<int>::b;
}
// Test that duplicate elimination of implicit instantiations of static
// data members works properly.
// Additional sources: comdat3-aux.cc
// Additional files: comdat3.h
#include "comdat3.h"
int main ()
{
const bool *p = &A<int>::b;
f ();
}
template <class T> struct A {
static const bool b = false;
};
template <class T>
const bool A<T>::b;
void f ();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment