diff --git a/FWCore/Framework/src/EDConsumerBase.cc b/FWCore/Framework/src/EDConsumerBase.cc
index ec670f3ff0e94..6e0ba68161203 100644
--- a/FWCore/Framework/src/EDConsumerBase.cc
+++ b/FWCore/Framework/src/EDConsumerBase.cc
@@ -450,6 +450,10 @@ namespace {
modules.push_back(it->second);
}
foundInLabelsToDesc = true;
+ } else {
+ if (label == "source") {
+ foundInLabelsToDesc = true;
+ }
}
}
if (foundInLabelsToDesc) {
diff --git a/FWCore/Integration/test/BuildFile.xml b/FWCore/Integration/test/BuildFile.xml
index b3e42d7ee356d..b4653eef8091a 100644
--- a/FWCore/Integration/test/BuildFile.xml
+++ b/FWCore/Integration/test/BuildFile.xml
@@ -447,4 +447,6 @@
+
+
diff --git a/FWCore/Integration/test/inputSource_alias_Test_cfg.py b/FWCore/Integration/test/inputSource_alias_Test_cfg.py
new file mode 100644
index 0000000000000..bd2d11a878a78
--- /dev/null
+++ b/FWCore/Integration/test/inputSource_alias_Test_cfg.py
@@ -0,0 +1,23 @@
+import FWCore.ParameterSet.Config as cms
+
+process = cms.Process("TEST")
+
+process.load("FWCore.Framework.test.cmsExceptionsFatal_cff")
+
+process.maxEvents = cms.untracked.PSet(
+ input = cms.untracked.int32(2)
+)
+
+process.source = cms.Source("ThingSource"
+)
+
+process.thing = cms.EDAlias(source = cms.VPSet( cms.PSet( type = cms.string("edmtestThings")) ) )
+
+
+process.OtherThing = cms.EDProducer("OtherThingProducer",
+ thingTag = cms.InputTag('thing')
+)
+
+process.Analysis = cms.EDAnalyzer("OtherThingAnalyzer")
+
+process.p = cms.Path(process.OtherThing * process.Analysis)